Repository: fniessink/toisto (language: python)

Issue:
Example is for synonym
Toisto gives an example for a synonym:

```console
Translate into Dutch:
kuitenkaan
> toch
✅ Correct.
Note: kuitenkaan is used chiefly in the negative.
Example: 'Minulla on kiire, silti olen tässä.' meaning 'Ik heb het druk, toch ben ik hier.'
```


Discussion / hints:

Fix patch:
diff --git a/src/concepts/adverbs/however.json b/src/concepts/adverbs/however.json
index 26111752..b98c4e92 100644
--- a/src/concepts/adverbs/however.json
+++ b/src/concepts/adverbs/however.json
@@ -20,7 +20,6 @@
     "I am busy, however, I am here": {
         "roots": [
             "to be",
-            "budy",
             "however",
             "here"
         ],
@@ -33,7 +32,11 @@
             "I am busy, but I am here anyway.",
             "I am busy, but I am here regardless."
         ],
-        "fi": "Minulla on kiire, silti olen tässä.",
+        "fi": [
+            "Minulla on kiire, silti olen tässä.",
+            "Minulla on kiire, kuitenkaan olen tässä.",
+            "Minulla on kiire, kuitenkin olen tässä."
+        ],
         "nl": "Ik heb het druk, toch ben ik hier."
     }
 }


Test patch:
diff --git a/tests/toisto/ui/test_text.py b/tests/toisto/ui/test_text.py
index 574154d0..310f1bc9 100644
--- a/tests/toisto/ui/test_text.py
+++ b/tests/toisto/ui/test_text.py
@@ -204,7 +204,7 @@ def test_post_quiz_example_with_write_quiz(self):
         )
 
     def test_post_quiz_example_with_multiple_meanings(self):
-        """Test that the post quiz example is not repeated if an examples has multiple meanings."""
+        """Test that the post quiz example is not repeated if an example has multiple meanings."""
         hi = self.create_concept("hi", dict(nl="hoi", fi="terve", example="hi alice"))
         self.create_concept("hi alice", dict(fi="Terve Alice!", nl=["Hoi Alice!", "Hallo Alice!"]))
         quiz = create_quizzes(FI_NL, (WRITE,), hi).pop()
@@ -229,6 +229,19 @@ def test_post_quiz_example_with_colloquial_labels(self):
             feedback(Evaluation.CORRECT, self.guess),
         )
 
+    def test_post_quiz_example_with_synonyms(self):
+        """Test that the post quiz example is for the correct synonym."""
+        near = self.create_concept("near", dict(fi="lähellä", nl=["dichtbij", "in de buurt"], example="is is near"))
+        self.create_concept("is is near", dict(fi="Se on lähellä.", nl=["Het is dichtbij.", "Het is in de buurt."]))
+        quiz = create_quizzes(FI_NL, (READ,), near).pop()
+        feedback = Feedback(quiz, FI_NL)
+        self.assertEqual(
+            Feedback.CORRECT + "[secondary]Another correct answer is "
+            "'[link=https://en.wiktionary.org/wiki/dichtbij]dichtbij[/link]'.[/secondary]\n"
+            "[secondary]Example: 'Se on lähellä.' meaning 'Het is dichtbij.' and 'Het is in de buurt.'[/secondary]\n",
+            feedback(Evaluation.CORRECT, Label(NL, "in de buurt")),
+        )
+
 
 class LinkifyTest(TestCase):
     """Unit tests for the linkify method."""