Skip to content

Commit 29ceb68

Browse files
committed
Add examples for kuitenkin and kuitenkaan.
Fixes #944.
1 parent ec8fcac commit 29ceb68

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

src/concepts/adverbs/however.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"I am busy, however, I am here": {
2121
"roots": [
2222
"to be",
23-
"budy",
2423
"however",
2524
"here"
2625
],
@@ -33,7 +32,11 @@
3332
"I am busy, but I am here anyway.",
3433
"I am busy, but I am here regardless."
3534
],
36-
"fi": "Minulla on kiire, silti olen tässä.",
35+
"fi": [
36+
"Minulla on kiire, silti olen tässä.",
37+
"Minulla on kiire, kuitenkaan olen tässä.",
38+
"Minulla on kiire, kuitenkin olen tässä."
39+
],
3740
"nl": "Ik heb het druk, toch ben ik hier."
3841
}
3942
}

tests/toisto/ui/test_text.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def test_post_quiz_example_with_write_quiz(self):
204204
)
205205

206206
def test_post_quiz_example_with_multiple_meanings(self):
207-
"""Test that the post quiz example is not repeated if an examples has multiple meanings."""
207+
"""Test that the post quiz example is not repeated if an example has multiple meanings."""
208208
hi = self.create_concept("hi", dict(nl="hoi", fi="terve", example="hi alice"))
209209
self.create_concept("hi alice", dict(fi="Terve Alice!", nl=["Hoi Alice!", "Hallo Alice!"]))
210210
quiz = create_quizzes(FI_NL, (WRITE,), hi).pop()
@@ -229,6 +229,19 @@ def test_post_quiz_example_with_colloquial_labels(self):
229229
feedback(Evaluation.CORRECT, self.guess),
230230
)
231231

232+
def test_post_quiz_example_with_synonyms(self):
233+
"""Test that the post quiz example is for the correct synonym."""
234+
near = self.create_concept("near", dict(fi="lähellä", nl=["dichtbij", "in de buurt"], example="is is near"))
235+
self.create_concept("is is near", dict(fi="Se on lähellä.", nl=["Het is dichtbij.", "Het is in de buurt."]))
236+
quiz = create_quizzes(FI_NL, (READ,), near).pop()
237+
feedback = Feedback(quiz, FI_NL)
238+
self.assertEqual(
239+
Feedback.CORRECT + "[secondary]Another correct answer is "
240+
"'[link=https://en.wiktionary.org/wiki/dichtbij]dichtbij[/link]'.[/secondary]\n"
241+
"[secondary]Example: 'Se on lähellä.' meaning 'Het is dichtbij.' and 'Het is in de buurt.'[/secondary]\n",
242+
feedback(Evaluation.CORRECT, Label(NL, "in de buurt")),
243+
)
244+
232245

233246
class LinkifyTest(TestCase):
234247
"""Unit tests for the linkify method."""

0 commit comments

Comments
 (0)