Skip to content

Commit

Permalink
test: adding a synonym test for the suggestion feature (#8674)
Browse files Browse the repository at this point in the history
  • Loading branch information
albatrousse authored Jul 10, 2023
1 parent e225e7f commit 453c6b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/integration/api_cgi_suggest.t
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ my $tests_ref = [
path => '/cgi/suggest.pl?tagtype=categories&string=Café&lc=fr',
expected_status_code => 200,
},
{
test_case => 'synonym-string-fr-dairy-drinks',
method => 'GET',
path => '/cgi/suggest.pl?tagtype=categories&string=jus de fruits au lait&lc=fr',
expected_status_code => 200,
},
];

execute_api_tests(__FILE__, $tests_ref);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
"Boissons au fruit et au lait"
]

0 comments on commit 453c6b1

Please sign in to comment.