Commit 7483d64
authored
Add test for adjacent string literals preservation
I added a unit test to assert the specific case you reported.
Added test in modules/database-commons/src/test/java/org/testcontainers/ext/ScriptSplittingTest.java:
testAdjacentStringLiteralsSeparatedByNewlineArePreserved checks that:
- CREATE TABLE collapses newlines to spaces.
- COMMENT ON COLUMN ... IS 'First sentence. '\n'Second sentence' preserves the required newline between quoted strings.1 parent 3cc0fc7 commit 7483d64
File tree
1 file changed
+19
-0
lines changed- modules/database-commons/src/test/java/org/testcontainers/ext
1 file changed
+19
-0
lines changedLines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
24 | 43 | | |
25 | 44 | | |
26 | 45 | | |
| |||
0 commit comments