Changeset 25029 in vbox for trunk/src/VBox/Runtime/testcase/tstRTStrVersion.cpp
- Timestamp:
- Nov 26, 2009 7:39:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstRTStrVersion.cpp
r25014 r25029 54 54 } const aTests[] = 55 55 { 56 { "", "",0 },57 { "asdf", "", 1 }, /* "asdf" is bigger than "" */58 { "asdf234", "1.4.5",1 },59 { "12.foo006", "12.6", 1 }, /* "12.foo006" is bigger than "12.6" */60 { "1", "1",0 },61 { "1", "100",-1},62 { "100", "1",1 },63 { "3", "4",-1},64 { "1", "0.1",1 },65 { "1", "0.0.0.0.10000",1 },66 { "0100", "100",0 },67 { "1.0.0", "1",0 },68 { "1.0.0", "100.0.0",-1},69 { "1", "1.0.3.0",-1},70 { "1.4.5", "1.2.3",1 },71 { "1.2.3", "1.4.5",-1},72 { "1.2.3", "4.5.6",-1},73 { "1.0.4", "1.0.3",1 },74 { "0.1", "0.0.1",1 },75 { "0.0.1", "0.1.1",-1},76 { "3.1.0", "3.0.14",1 },77 { "2.0.12", "3.0.14",-1},78 { "3.1", "3.0.22",1 },79 { "3.0.14", "3.1.0",-1},80 { "45.63", "04.560.30",1 },81 { "45.006", "45.6",0 },82 { "23.206", "23.06",1 },83 { "23.2", "23.060",-1},56 { "", "", 0 }, 57 { "asdf", "", 1 }, 58 { "asdf234", "1.4.5", 1 }, 59 { "12.foo006", "12.6", 1 }, 60 { "1", "1", 0 }, 61 { "1", "100", -1}, 62 { "100", "1", 1 }, 63 { "3", "4", -1}, 64 { "1", "0.1", 1 }, 65 { "1", "0.0.0.0.10000", 1 }, 66 { "0100", "100", 0 }, 67 { "1.0.0", "1", 0 }, 68 { "1.0.0", "100.0.0", -1}, 69 { "1", "1.0.3.0", -1}, 70 { "1.4.5", "1.2.3", 1 }, 71 { "1.2.3", "1.4.5", -1}, 72 { "1.2.3", "4.5.6", -1}, 73 { "1.0.4", "1.0.3", 1 }, 74 { "0.1", "0.0.1", 1 }, 75 { "0.0.1", "0.1.1", -1}, 76 { "3.1.0", "3.0.14", 1 }, 77 { "2.0.12", "3.0.14", -1}, 78 { "3.1", "3.0.22", 1 }, 79 { "3.0.14", "3.1.0", -1}, 80 { "45.63", "04.560.30", 1 }, 81 { "45.006", "45.6", 0 }, 82 { "23.206", "23.06", 1 }, 83 { "23.2", "23.060", -1}, 84 84 85 { "VirtualBox-2.0.8-Beta2", "VirtualBox-2.0.8_Beta3-r12345", -1}, 86 { "VirtualBox-2.2.4-Beta2", "VirtualBox-2.2.2", 1 }, 87 { "VirtualBox-2.2.4-Beta3", "VirtualBox-2.2.2-Beta4", 1 }, 88 { "VirtualBox-3.1.8-Alpha1", "VirtualBox-3.1.8-Alpha1-r61454", -1}, 89 { "VirtualBox-3.1.0", "VirtualBox-3.1.2_Beta1", -1}, 90 { "3.1.0_BETA-r12345", "3.1.2", -1}, 85 { "VirtualBox-2.0.8-Beta2", "VirtualBox-2.0.8_Beta3-r12345", -1 }, 86 { "VirtualBox-2.2.4-Beta2", "VirtualBox-2.2.2", 1 }, 87 { "VirtualBox-2.2.4-Beta3", "VirtualBox-2.2.2-Beta4", 1 }, 88 { "VirtualBox-3.1.8-Alpha1", "VirtualBox-3.1.8-Alpha1-r61454", -1 }, 89 { "VirtualBox-3.1.0", "VirtualBox-3.1.2_Beta1", -1 }, 90 { "3.1.0_BETA-r12345", "3.1.2", -1 }, 91 { "3.1.0_BETA-r12345", "3.1.0", -1 }, 92 { "3.1.0_BETA-r12345", "3.1.0", -1 }, 93 { "3.1.0_BETA-r12345", "3.1.0r12345", -1 }, 91 94 }; 92 95 for (unsigned iTest = 0; iTest < RT_ELEMENTS(aTests); iTest++)
Note:
See TracChangeset
for help on using the changeset viewer.