Skip to content

Commit 3f0754e

Browse files
committed
add additional tests
1 parent a20f7f7 commit 3f0754e

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

tensorflow_datasets/image/imagewang_test.py

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,32 @@
88
from tensorflow_datasets.image import imagewang
99

1010

11-
class ImagewangTest(testing.DatasetBuilderTestCase):
11+
class ImagewangFullSizeTest(testing.DatasetBuilderTestCase):
1212
DATASET_CLASS = imagewang.Imagewang
13+
BUILDER_CONFIG_NAMES_TO_TEST = ['full-size']
1314
SPLITS = {
14-
"train": 4, # Number of fake train example
15-
"test": 4, # Number of fake test example
15+
"train": 4,
16+
"test": 4,
1617
}
1718

19+
20+
class Imagewang320Test(testing.DatasetBuilderTestCase):
21+
DATASET_CLASS = imagewang.Imagewang
22+
BUILDER_CONFIG_NAMES_TO_TEST = ['320px']
23+
SPLITS = {
24+
"train": 4,
25+
"test": 4,
26+
}
27+
28+
29+
class Imagewang160Test(testing.DatasetBuilderTestCase):
30+
DATASET_CLASS = imagewang.Imagewang
31+
BUILDER_CONFIG_NAMES_TO_TEST = ['160px']
32+
SPLITS = {
33+
"train": 4,
34+
"test": 4,
35+
}
36+
37+
1838
if __name__ == "__main__":
1939
testing.test_main()

0 commit comments

Comments
 (0)