use v6;
use lib 'lib';
use DSL::English::RecommenderWorkflows::Grammar;
use Test;

plan 8;

# Shortcut
my $pSMRMONCOMMAND = DSL::English::RecommenderWorkflows::Grammar.new;

#-----------------------------------------------------------
# Creation commands
#-----------------------------------------------------------

ok $pSMRMONCOMMAND.parse('crate with ds2'),
        'crate with ds2';

ok $pSMRMONCOMMAND.parse('create recomender with ds2'),
        'create recomender with ds2';

ok $pSMRMONCOMMAND.parse('crate recomender obect with ds2'),
        'crate recommnder obect with ds2';

ok $pSMRMONCOMMAND.parse('generate the recommender'),
        'generate the recommender';


#-----------------------------------------------------------
# Recommendations by history commands
#-----------------------------------------------------------

ok $pSMRMONCOMMAND.parse('recomend with histry id.2:3 and id.13:4'),
        'recomend with histry id.2:3 and id.13:4';

ok $pSMRMONCOMMAND.parse('reccommend with history id.12:3 and id.13:4'),
        'reccommend with history id.12:3 and id.13:4';

ok $pSMRMONCOMMAND.parse('sugest by historie hr:3, rr:4, ra:1'),
        'sugest by historie hr:3, rr:4, ra:1';

ok $pSMRMONCOMMAND.parse('find recommendations for history hr:3, rr:4, ra:1'),
        'find recommendations for history hr:3, rr:4, ra:1';

done-testing;