Wiki
Show
Ignore:
Timestamp:
03/06/10 05:28:49 (2 years ago)
Author:
Chuck.Esterbrook
Message:

Add test cases for concatenation of dynamic vars.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Tests/500-dynamic/104-dynamic-ops.cobra

    r2242 r2303  
    1717        .testAugmentedAssignment 
    1818        .testBoolOps 
     19        .testConcat 
    1920        .testIn 
    2021 
     
    196197        assert not any t 
    197198 
     199    def testConcat 
     200        a = 'a' to dynamic 
     201        b = 'b' to dynamic 
     202        assert a + b == 'ab' 
     203        assert a == 'a' and b == 'b' 
     204        a += 'c' 
     205        assert a == 'ac' 
     206        a, b = 1, 2 
     207        assert a + b == 3 
     208 
    198209    def testIn 
    199210        .testIn1