Apply default formatting

This commit is contained in:
Vitalii Elenhaupt 2018-09-03 00:17:56 +03:00
parent bbb0cf51e7
commit f4680a75f4
No known key found for this signature in database
GPG key ID: 7558EF3A4056C706
7 changed files with 15 additions and 15 deletions

View file

@ -58,9 +58,9 @@ module Ameba
it "shows issue end_location" do
s = Source.new ""
s.add_issue DummyRule.new,
Crystal::Location.new("path", 3, 3),
Crystal::Location.new("path", 5, 4),
"message"
Crystal::Location.new("path", 3, 3),
Crystal::Location.new("path", 5, 4),
"message"
result = get_result [s]
end_location = result["sources"][0]["issues"][0]["end_location"]

View file

@ -5,8 +5,8 @@ module Ameba
it "tokenizes #{str}" do
([] of Symbol).tap do |token_types|
Tokenizer.new(Source.new str)
.run { |token| token_types << token.type }
.should be_true
.run { |token| token_types << token.type }
.should be_true
end.should eq expected
end
end