[asterisk-commits] mnicholson: testsuite/asterisk/trunk r1453 - /asterisk/trunk/asttest/self-tes...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 29 13:25:43 CDT 2011


Author: mnicholson
Date: Tue Mar 29 13:25:39 2011
New Revision: 1453

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=1453
Log:
added a few more version comparison tests

Modified:
    asterisk/trunk/asttest/self-tests/asterisk_version/test.lua

Modified: asterisk/trunk/asttest/self-tests/asterisk_version/test.lua
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/asttest/self-tests/asterisk_version/test.lua?view=diff&rev=1453&r1=1452&r2=1453
==============================================================================
--- asterisk/trunk/asttest/self-tests/asterisk_version/test.lua (original)
+++ asterisk/trunk/asttest/self-tests/asterisk_version/test.lua Tue Mar 29 13:25:39 2011
@@ -146,9 +146,11 @@
 compare_false("1.6.2 > 1.6.2")
 compare_false("1.6.2 < 1.6.2")
 compare_false("1.6.2 ~= 1.6.2")
+compare_false("1.6.2 >= 1.6.3")
 
 -- these comparisons should evaluate to true
 compare("1.6.2 <= 1.6.2")
+compare("1.6.2 <= 1.6.3")
 compare("1.4 < 1.6.2")
 compare("1.4 < 1.4.2")
 compare("1.4.30 < 1.6")
@@ -159,6 +161,10 @@
 compare("SVN-trunk-r1234 > SVN-branch-1.6.2-r224353")
 compare("C.3 < 1.6.2")
 compare("C.3 > 1.4.34")
+compare("C.3.6 > 1.4.34")
+compare("C.3.6.2 > 1.4.34")
+compare("C.3.6.2 > C.3")
+compare("C.3.6.2 > C.3.6")
 
 if ast.exists() then
 	print("automatically detected version " .. tostring(ast.version()))




More information about the asterisk-commits mailing list