### ----------------------------------------------------
### -- Chemistry::Stoichiometry
### -- Licenses: Artistic-2.0
### -- Authors: Anton Antonov
### -- File: t/02-Chemical-element-name-translation.rakutest
### ----------------------------------------------------
use Test;

use lib './lib';
use lib '.';

use Chemistry::Stoichiometry;

plan 16;

## 1
is-deeply chemical-element('Хлор', 'Bulgarian'),
        'Хлор',
        "chemical-element('Хлор', 'Bulgarian')";

## 2
is-deeply chemical-element('Хлор', 'Chinese'),
        '氯',
        "chemical-element('Хлор', 'Chinese')";

## 3
is-deeply chemical-element('Хлор', 'Czech'),
        'Chlor',
        "chemical-element('Хлор', 'Czech')";

## 4
is-deeply chemical-element('Хлор', 'German'),
        'Chlor',
        "chemical-element('Хлор', 'German')";

## 5
is-deeply chemical-element('Хлор', 'Greek'),
        'Χλωριο',
        "chemical-element('Хлор', 'Greek')";

## 6
is-deeply chemical-element('Хлор', 'Japanese'),
        '塩素',
        "chemical-element('Хлор', 'Japanese')";

## 7
is-deeply chemical-element('Хлор', 'Korean'),
        '염소',
        "chemical-element('Хлор', 'Korean')";

## 8
is-deeply chemical-element(12, 'Russian'),
        'Магний',
        "chemical-element(12, 'Russian')";

## 9
is-deeply chemical-element('Хлор', 'Persian'),
        'کلر',
        "chemical-element('Хлор', 'Persian')";

## 10
is-deeply chemical-element('Sodium', 'Arabic'),
        'صوديوم',
        "chemical-element('Sodium', 'Arabic')";

## 11
is-deeply chemical-element('Хлор', 'Polish'),
        'Chlor',
        "chemical-element('Хлор', 'Polish')";

## 12
is-deeply chemical-element('Хлор', 'Spanish'),
        'Cloro',
        "chemical-element('Хлор', 'Spanish')";

## 13
is-deeply chemical-element('Oxygen', 'Russian'),
        'Кислород',
        "chemical-element('Oxygen', 'Russian')";

## 14
is-deeply chemical-element(['Хлор', 'Кислород', 'Водород', 'Oxygen'], 'Spanish'),
        <Cloro Oxígeno Hidrógeno Oxígeno>,
        'chemical-element-data(@testCommands)';

## 15
is-deeply chemical-element(<Oxygen Argon Carbon>),
        <Oxygen Argon Carbon>,
        "chemical-element(<Oxygen, Argon, Carbon>)";

## 16
is-deeply chemical-element(['Хлор', 'Кислород', 'Водород', 'Oxygen'], 'Portuguese'),
        <Cloro Oxigénio Hidrogéno Oxigénio>,
        'chemical-element-data(@testCommands)';

done-testing;


