package test 
	
	native testFail(string msg)
	native testSuccess()

	
	class Person 
		string name
		
		function setName(string n) 
			name = n
		
		
		function getName() returns string 
			return name
		
		
		construct (string n) 
			name = n
		
	
	

	init 
		Person p = new Person("peq")
		if (p.getName() != "peq") 
			testFail("name != peq")
		else 
			p.setName("Frotty")
			if p.getName() == "Frotty" 
				testSuccess()
			else 
				testFail("name != Frotty.")
			
		
endpackage	 
	
	

