Software /
code /
prosody
Comparison
tests/test_core_s2smanager.lua @ 2713:1fc95582d74b
tests/test_core_s2smanager.lua: Fix to compare SRV weights correctly
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 25 Feb 2010 17:54:23 +0000 |
parent | 1523:841d61be198f |
child | 2923:b7049746bd29 |
comparison
equal
deleted
inserted
replaced
2712:9c579864b20a | 2713:1fc95582d74b |
---|---|
28 | 28 |
29 assert_equal(csp(r3, r1), false); | 29 assert_equal(csp(r3, r1), false); |
30 assert_equal(csp(r3, r2), false); | 30 assert_equal(csp(r3, r2), false); |
31 assert_equal(csp(r3, r3), false); | 31 assert_equal(csp(r3, r3), false); |
32 assert_equal(csp(r3, r4), false); | 32 assert_equal(csp(r3, r4), false); |
33 assert_equal(csp(r3, r5), true); | 33 assert_equal(csp(r3, r5), false); |
34 | 34 |
35 assert_equal(csp(r4, r1), false); | 35 assert_equal(csp(r4, r1), false); |
36 assert_equal(csp(r4, r2), false); | 36 assert_equal(csp(r4, r2), false); |
37 assert_equal(csp(r4, r3), false); | 37 assert_equal(csp(r4, r3), false); |
38 assert_equal(csp(r4, r4), false); | 38 assert_equal(csp(r4, r4), false); |
39 assert_equal(csp(r4, r5), true); | 39 assert_equal(csp(r4, r5), false); |
40 | 40 |
41 assert_equal(csp(r5, r1), false); | 41 assert_equal(csp(r5, r1), false); |
42 assert_equal(csp(r5, r2), false); | 42 assert_equal(csp(r5, r2), false); |
43 assert_equal(csp(r5, r3), false); | 43 assert_equal(csp(r5, r3), true); |
44 assert_equal(csp(r5, r4), false); | 44 assert_equal(csp(r5, r4), true); |
45 assert_equal(csp(r5, r5), false); | 45 assert_equal(csp(r5, r5), false); |
46 | 46 |
47 end | 47 end |