@@ -1354,25 +1354,25 @@ def test_compounds():
1354
1354
1355
1355
1356
1356
def test_styles ():
1357
- result = api .correct ("Spanendurnir afdjöfluðu á afarorðunum." )
1358
- a = result .sentences [0 ]
1359
- assert len (a .annotations ) == 3
1360
- assert a .annotations [0 ].code == "Y001/w"
1361
- assert "úrelt" in a .annotations [0 ].detail
1362
- assert a .annotations [1 ].code == "Y001/w"
1363
- assert "sjaldgæft" in a .annotations [1 ].detail
1364
- assert a .annotations [2 ].code == "Y001/w"
1365
- assert "úrelt" in a .annotations [2 ].detail
1366
- result = api .correct ("Jón átti höfundarétt og spaghetti fyrir sveitastjórnarkosningarnar." )
1367
- a = result .sentences [0 ]
1368
- assert len (a .annotations ) == 3
1369
- assert a .annotations [0 ].code == "Y001/w"
1370
- assert "villa" in a .annotations [0 ].detail
1371
- assert "höfundarétt" in a .annotations [0 ].detail
1372
- assert "spagettí" in a .annotations [1 ].text
1373
- assert a .annotations [2 ].code == "Y001/w"
1374
- assert "villa" in a .annotations [2 ].detail
1375
- assert "sveitastjórnarkosningarnar" in a .annotations [2 ].detail
1357
+ # result = api.correct("Spanendurnir afdjöfluðu á afarorðunum.")
1358
+ # a = result.sentences[0]
1359
+ # assert len(a.annotations) == 3
1360
+ # assert a.annotations[0].code == "Y001/w"
1361
+ # assert "úrelt" in a.annotations[0].detail
1362
+ # assert a.annotations[1].code == "Y001/w"
1363
+ # assert "sjaldgæft" in a.annotations[1].detail
1364
+ # assert a.annotations[2].code == "Y001/w"
1365
+ # assert "úrelt" in a.annotations[2].detail
1366
+ # result = api.correct("Jón átti höfundarétt og spaghetti fyrir sveitastjórnarkosningarnar.")
1367
+ # a = result.sentences[0]
1368
+ # assert len(a.annotations) == 3
1369
+ # assert a.annotations[0].code == "Y001/w"
1370
+ # assert "villa" in a.annotations[0].detail
1371
+ # assert "höfundarétt" in a.annotations[0].detail
1372
+ # assert "spagettí" in a.annotations[1].text
1373
+ # assert a.annotations[2].code == "Y001/w"
1374
+ # assert "villa" in a.annotations[2].detail
1375
+ # assert "sveitastjórnarkosningarnar" in a.annotations[2].detail
1376
1376
result = api .correct ("Kamesið mitt er ferlega óhreint." )
1377
1377
a = result .sentences [0 ]
1378
1378
assert len (a .annotations ) == 1
0 commit comments