@@ -48,6 +48,55 @@ def test_icpc2013spring_a(self):
4848 actual = main (['get-problem' , url ], debug = True )
4949 self .assertEqual (expected , actual )
5050
51+ def test_icpc2013spring_a_compatibility (self ):
52+ """This test checks --compatbility option
53+ """
54+
55+ url = 'http://jag2013spring.contest.atcoder.jp/tasks/icpc2013spring_a'
56+ expected = {
57+ "status" : "ok" ,
58+ "messages" : [],
59+ "result" : {
60+ "name" : "A. Everlasting Zero" ,
61+ "group" : "Japan Alumni Group Spring Contest 2013" ,
62+ "url" : "https://atcoder.jp/contests/jag2013spring/tasks/icpc2013spring_a" ,
63+ "interactive" : False ,
64+ "memoryLimit" : 128 ,
65+ "timeLimit" : 5000 ,
66+ "tests" : [{
67+ "input" : "2 2\n 2 \n 1 >= 3\n 2 <= 5\n 2\n 1 >= 4\n 2 >= 3\n " ,
68+ "output" : "Yes\n "
69+ }, {
70+ "input" : "2 2\n 2 \n 1 >= 5\n 2 >= 5\n 2\n 1 <= 4\n 2 <= 3\n " ,
71+ "output" : "Yes\n "
72+ }, {
73+ "input" : "2 2\n 2 \n 1 >= 3\n 2 <= 3\n 2\n 1 <= 2\n 2 >= 5\n " ,
74+ "output" : "No\n "
75+ }, {
76+ "input" : "1 2\n 2\n 1 <= 10\n 1 >= 15\n " ,
77+ "output" : "No\n "
78+ }, {
79+ "input" : "5 5\n 3\n 2 <= 1\n 3 <= 1\n 4 <= 1\n 4\n 2 >= 2\n 3 <= 1\n 4 <= 1\n 5 <= 1\n 3\n 3 >= 2\n 4 <= 1\n 5 <= 1\n 2\n 4 >= 2\n 5 <= 1\n 1\n 5 >= 2 \n " ,
80+ "output" : "Yes\n "
81+ }],
82+ "testType" : "single" ,
83+ "input" : {
84+ "type" : "stdin" ,
85+ },
86+ "output" : {
87+ "type" : "stdout" ,
88+ },
89+ "languages" : {
90+ "java" : {
91+ "mainClass" : "Main" ,
92+ "taskClass" : "Task" ,
93+ },
94+ },
95+ },
96+ }
97+ actual = main (['get-problem' , url , "--compatibility" ], debug = True )
98+ self .assertEqual (expected , actual )
99+
51100 def test_arc035_a (self ):
52101 """This problem uses <code> tags in the descriptoin text in the sample section.
53102 """
@@ -236,7 +285,7 @@ def test_tenka1_2014_quala_e(self):
236285 self .assertEqual (expected , actual )
237286
238287 def test_non_existing_problem (self ):
239- """This tests an non-existing problem.
288+ """This tests a non-existing problem.
240289 """
241290
242291 url = 'http://abc001.contest.atcoder.jp/tasks/abc001_100'
@@ -249,7 +298,7 @@ def test_non_existing_problem(self):
249298 self .assertEqual (expected , actual )
250299
251300 def test_impossible_problem (self ):
252- """This tests a problem impossible to parse sample cases.
301+ """This tests a problem of which it is impossible to parse sample cases.
253302 """
254303
255304 url = 'https://chokudai001.contest.atcoder.jp/tasks/chokudai_001_a'
0 commit comments