Skip to content

Commit

Permalink
More unit tests - why are we failing?
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbra committed Apr 11, 2023
1 parent 940c788 commit 9226df7
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,23 @@ SELECT 1
batches.First().Should().NotEndWith(";");
}

[Test]
public void Splits_into_multiple_statements()
{
const string original = @"
create table table_one (
col number
);
/
create table table_two (
col number
)
";
var batches = Splitter.Split(original).ToArray();

batches.Should().HaveCount(2);
batches.First().Should().NotEndWith(";");
}

}

0 comments on commit 9226df7

Please sign in to comment.