package Ġfi . ri ista . common . model Ċ Ċ import Ġkotlin . test . Test Ċ import Ġkotlin . test . assertEquals Ċ import Ġkotlin . test . assertNull Ċ Ċ class ĠLanguage Test Ġ{ ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Known Languages () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertEquals ( Language . FI , ĠLanguage . from Language Code (" fi ")) ĊĠĠĠĠĠĠĠ ĠassertEquals ( Language . SV , ĠLanguage . from Language Code (" sv ")) ĊĠĠĠĠĠĠĠ ĠassertEquals ( Language . EN , ĠLanguage . from Language Code (" en ")) ĊĊĠĠĠĠĠĠĠ ĠassertEquals (" fi ", ĠLanguage . FI . language Code ) ĊĠĠĠĠĠĠĠ ĠassertEquals (" sv ", ĠLanguage . SV . language Code ) ĊĠĠĠĠĠĠĠ ĠassertEquals (" en ", ĠLanguage . EN . language Code ,) ĊĠĠĠĠĠĠĠ ĠassertEquals ( 3 , ĠLanguage . values (). size ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Known Language sWith UpperCase Letters () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertEquals ( Language . FI , ĠLanguage . from Language Code (" Fi ")) ĊĠĠĠĠĠĠĠ ĠassertEquals ( Language . SV , ĠLanguage . from Language Code (" Sv ")) ĊĠĠĠĠĠĠĠ ĠassertEquals ( Language . EN , ĠLanguage . from Language Code (" En ")) ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( Language . FI , ĠLanguage . from Language Code (" FI ")) ĊĠĠĠĠĠĠĠ ĠassertEquals ( Language . SV , ĠLanguage . from Language Code (" SV ")) ĊĠĠĠĠĠĠĠ ĠassertEquals ( Language . EN , ĠLanguage . from Language Code (" EN ")) ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( Language . FI , ĠLanguage . from Language Code (" f I ")) ĊĠĠĠĠĠĠĠ ĠassertEquals ( Language . SV , ĠLanguage . from Language Code (" s V ")) ĊĠĠĠĠĠĠĠ ĠassertEquals ( Language . EN , ĠLanguage . from Language Code (" e N ")) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Unknown Languages () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertNull ( Language . from Language Code (" de ")) ĊĠĠĠĠĠĠĠ ĠassertNull ( Language . from Language Code (" ru ")) ĊĠĠĠĠĠĠĠ ĠassertNull ( Language . from Language Code (" fr ")) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Language sWith Locale () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertNull ( Language . from Language Code (" en - US ")) ĊĠĠĠĠĠĠĠ ĠassertNull ( Language . from Language Code (" fi - FI ")) ĊĠĠĠĠĠĠĠ ĠassertNull ( Language . from Language Code (" sv - SV ")) ĊĠĠĠ Ġ} Ċ } Ċ