1
/* c-basic-offset: 2; tab-width: 2; indent-tabs-mode: nil
2
* vi: set shiftwidth=2 tabstop=2 expandtab:
3
* :indentSize=2:tabSize=2:noTabs=true:
10
import javax.rmi.CORBA.Util;
11
import java.util.Objects;
13
public class TestHash {
17
System.out.println(Utils.hash_func("Hello World"));
23
String s0 = Utils.hash_func("Hello World");
24
String s1 = Utils.hash_func("hello World");
25
assert (! Objects.equals (s0, s1));
26
System.out.println ("Hello World: " + s0);
27
System.out.println ("hello World: " + s1);
32
String s0 = new String ("Hello World!");
33
String s1 = "Hello World!";
35
String h0 = Utils.hash_func (s0);
36
String h1 = Utils.hash_func (s1);
38
assert (Objects.equals (h0, h1));