mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Apply default formatting
This commit is contained in:
parent
bbb0cf51e7
commit
f4680a75f4
7 changed files with 15 additions and 15 deletions
|
@ -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"]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue