Skip to content

Commit 4576d18

Browse files
committed
Improved tests for string length checking
1 parent e607195 commit 4576d18

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/test/java/ldbc/snb/datagen/test/LDBCDatagenTest.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,21 @@ public static void generateData() {
4646
@Test
4747
public void personTest() {
4848
testIdUniqueness(dir+"/person_0_0.csv", 0);
49+
testStringLength(dir+"/person_0_0.csv", 1, 40);
50+
testStringLength(dir+"/person_0_0.csv", 2, 40);
51+
testStringLength(dir+"/person_0_0.csv", 3, 40);
52+
testStringLength(dir+"/person_0_0.csv", 6, 40);
53+
testStringLength(dir+"/person_0_0.csv", 7, 40);
4954
}
5055

5156
@Test
5257
public void postTest() {
5358
testIdUniqueness(dir+"/post_0_0.csv", 0);
5459
testLongBetween(dir+"/post_0_0.csv",7,0,2001);
60+
testStringLength(dir+"/post_0_0.csv", 1, 40);
61+
testStringLength(dir+"/post_0_0.csv", 3, 40);
62+
testStringLength(dir+"/post_0_0.csv", 4, 40);
63+
testStringLength(dir+"/post_0_0.csv", 5, 40);
5564
}
5665

5766
@Test
@@ -64,6 +73,8 @@ public void forumTest() {
6473
public void commentTest() {
6574
testIdUniqueness(dir+"/comment_0_0.csv", 0);
6675
testLongBetween(dir+"/comment_0_0.csv",5,0,2001);
76+
testStringLength(dir+"/comment_0_0.csv", 2, 40);
77+
testStringLength(dir+"/comment_0_0.csv", 3, 40);
6778
}
6879

6980
@Test

0 commit comments

Comments
 (0)