#!/bin/java bsh.Interpreter

source("TestHarness.bsh");

/*
	Test the serializability of everything.
	Save and reconstitute

	Note: in 1.1 the Primitive class .TYPE special classes are not serializable
	It's fixed in 1.2
*/


/*
	This is crashing the Console right now because it tries to serialize
	the desktop (through bsh.desktop).  Why does it crash?  
*/
if ( bsh.desktop == void ) {
	try { 
		save(this, "world.ser"); 
	} catch ( Exception e ) { 
		e.printStackTrace(); 
		assert(false);
	}
	rm("world.ser");
} else
	warning("Test: save world would crash due to desktop... why?");

complete();

