Show
Ignore:
Timestamp:
03/20/09 09:30:36 (8 months ago)
Author:
jmaessen
Message:

Flesh out example somewhat to better show failure.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ProjectFortress/not_passing_yet/mapConstants.fss

    r3562 r3563  
    3737    b = {[\String,ZZ32\] "Hi" |-> 3, "Lois" |-> 23} 
    3838    c = {[\String,ZZ32\] "Snoopy" |-> 17} 
     39    d = {[\(String,ZZ32),(String,ZZ32)\] ("Hi",3) |-> ("Lois",23)} 
     40    (* Note that without explicit type parameterization we get the wrong answer. *) 
     41    e = {("Hi",3) |-> ("Lois",23)} 
     42    println("" a // b // c // d // e) 
     43    assert(d,e,"\n ie ",d," =/= ",e) 
    3944end 
    4045