rosetta-code.gnome-sort: add some tests

char-rename
Alexander Iljin 2017-03-19 01:17:13 +03:00 committed by John Benediktsson
parent ea50cc77a0
commit 692f49d92e
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
! Copyright (C) 2017 Alexander Ilin.
! See http://factorcode.org/license.txt for BSD license.
USING: tools.test rosetta-code.gnome-sort ;
IN: rosetta-code.gnome-sort.tests
{ V{ } } [ V{ } gnome-sort ] unit-test
{ V{ 0 } } [ V{ 0 } gnome-sort ] unit-test
{ V{ 0 1 2 3 4 5 } } [ V{ 0 1 2 3 4 5 } gnome-sort ] unit-test
{ V{ 0 1 2 3 4 5 } } [ V{ 5 4 3 2 1 0 } gnome-sort ] unit-test
{ V{ 0 1 2 3 4 5 } } [ V{ 2 4 5 1 3 0 } gnome-sort ] unit-test