### ----------------------------------------------------
### -- Chemistry::Elements
### -- Licenses: Artistic-2.0
### -- Authors: brian d foy, Raku Community
### -- File: t/000-version.rakutest
### ----------------------------------------------------
use Test;
use META6;

use Chemistry::Elements;
constant package-name = 'Chemistry::Elements';

plan 3;

my $module-version = Chemistry::Elements.^ver;
ok $module-version.defined, 'Module specifies a version';
diag "Module version is $module-version";

my $meta-file = 'META6.json';
my $meta = META6.new: file => $meta-file;

my $meta-version = $meta.version;
ok $meta-version.defined, 'META6 specifies a version';
diag "META6 version is $meta-version";

is $meta-version, $module-version, 'META6 version matches module version';

# vim: expandtab shiftwidth=4


