Skip to content

Commit 9226df7

Browse files
committed
More unit tests - why are we failing?
1 parent 940c788 commit 9226df7

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

grate.unittests/Basic/Infrastructure/Oracle/Statement_Splitting/StatementSplitter_.cs

+19
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,23 @@ SELECT 1
4444
batches.First().Should().NotEndWith(";");
4545
}
4646

47+
[Test]
48+
public void Splits_into_multiple_statements()
49+
{
50+
const string original = @"
51+
create table table_one (
52+
col number
53+
);
54+
/
55+
56+
create table table_two (
57+
col number
58+
)
59+
";
60+
var batches = Splitter.Split(original).ToArray();
61+
62+
batches.Should().HaveCount(2);
63+
batches.First().Should().NotEndWith(";");
64+
}
65+
4766
}

0 commit comments

Comments
 (0)