~ubuntu-branches/ubuntu/saucy/freecell-solver/saucy

« back to all changes in this revision

Viewing changes to t/t/board-gen.t

  • Committer: Package Import Robot
  • Author(s): Gergely Risko
  • Date: 2012-06-22 10:08:05 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120622100805-evoda1ccdr8vt5xr
Tags: 3.12.0-1
New upstream version. (closes: #675262)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
use strict;
4
4
use warnings;
5
5
 
6
 
use Test::More tests => 25;
 
6
use Test::More tests => 26;
7
7
use Test::Differences;
8
8
 
9
9
{
605
605
    );
606
606
}
607
607
 
 
608
{
 
609
    my $got = `python ../board_gen/make_pysol_freecell_board.py --pysolfc -t 2 all_in_a_row`;
 
610
 
 
611
    my $expected = <<"EOF";
 
612
Foundations: -
 
613
QD 6D KS 2H
 
614
QC 2D 7C 3H
 
615
KC 9C 6S AD
 
616
3C TD 4H 7H
 
617
4C JC AC 3D
 
618
2C 8C 8H 5H
 
619
KD 6C AH 8D
 
620
5C 8S 9S KH
 
621
4D 4S TC 7D
 
622
JD 5D 2S 5S
 
623
JS QH 3S TH
 
624
6H 7S TS JH
 
625
QS 9D 9H AS
 
626
EOF
 
627
 
 
628
    # TEST
 
629
    eq_or_diff (
 
630
        $got,
 
631
        $expected,
 
632
        "PySolFC black_hole 2",
 
633
    );
 
634
}
 
635
 
608
636
=head1 COPYRIGHT AND LICENSE
609
637
 
610
638
Copyright (c) 2008 Shlomi Fish