2010-08-03 20:43:57 -05:00
|
|
|
// -*- rust -*-
|
|
|
|
|
|
|
|
use std;
|
|
|
|
import std.map;
|
|
|
|
|
|
|
|
fn test_simple() {
|
2010-08-05 01:09:25 -05:00
|
|
|
log "*** starting test_simple";
|
|
|
|
|
2010-08-03 20:43:57 -05:00
|
|
|
fn eq(&uint x, &uint y) -> bool { ret x == y; }
|
|
|
|
|
|
|
|
let map.hashfn[uint] hasher = std.util.id[uint];
|
|
|
|
let map.eqfn[uint] eqer = eq;
|
|
|
|
let map.hashmap[uint, uint] hm = map.mk_hashmap[uint, uint](hasher, eqer);
|
2010-08-05 01:09:25 -05:00
|
|
|
|
|
|
|
log "*** finished test_simple";
|
2010-08-03 20:43:57 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
test_simple();
|
2010-08-05 01:09:25 -05:00
|
|
|
}
|