Conditions | 3 |
Total Lines | 6 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | package timeago |
||
8 | func TestParseJsonIntoLang(t *testing.T) { |
||
9 | t.Run("Function returns Lang model with needed values", func(test *testing.T) { |
||
10 | res := parseLangSet("langs/ru.json") |
||
11 | |||
12 | if res.Ago != "назад" { |
||
13 | t.Errorf("Function needs to return model with value назад, but returned %v", res.Ago) |
||
14 | } |
||
52 |