1// ============================================================================= 2// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab 3// Copyright (C) 2009 - DIGITEO - Pierre MARECHAL <pierre.marechal@scilab.org> 4// 5// This file is distributed under the same license as the Scilab package. 6// ============================================================================= 7// <-- CLI SHELL MODE --> 8load("SCI/modules/atoms/macros/atoms_internals/lib"); 9if atomsVersionCompare("5.1" ,"5.1.0") <> 0 then bugmes();quit;end 10if atomsVersionCompare("5.1.0" ,"5.1") <> 0 then bugmes();quit;end 11if atomsVersionCompare("5.1.00000" ,"5.1.0.0") <> 0 then bugmes();quit;end 12if atomsVersionCompare("5.1.0.0" ,"5.1.00000") <> 0 then bugmes();quit;end 13if atomsVersionCompare("5.1.0","5.1.2") <> -1 then bugmes();quit;end 14if atomsVersionCompare("5.1.2","5.1.0") <> 1 then bugmes();quit;end 15if atomsVersionCompare("10.0","2.6.9") <> 1 then bugmes();quit;end 16A = ["5.1";"5.1.0";"5.1.00000";"5.1.0.0";"05.1"]; 17B = [0 ; 0 ; 0 ; 0 ; 0 ]; 18if or( atomsVersionCompare(A,"5.1")<>B ) then bugmes();quit;end 19if atomsVersionCompare("1.4-1" ,"1.4") <> 1 then bugmes();quit;end 20if atomsVersionCompare("1.4-1" ,"1.4-3") <> -1 then bugmes();quit;end 21if atomsVersionCompare("1.4-10" ,"1.4-3") <> 1 then bugmes();quit;end 22if atomsVersionCompare("1.5-1" ,"1.4-3") <> 1 then bugmes();quit;end 23A = ["1.4-1";"1.4-3";"1.4.0-2";"1.4-10";"1.5-2";"1.4"]; 24B = [ -1 ; 1 ; 0 ; 1 ; 1 ; -1 ]; 25if or( atomsVersionCompare(A,"1.4-2")<>B ) then bugmes();quit;end 26