Commit Graph

1 Commits

Author SHA1 Message Date
James Goddard
cb04e37f22 Revised the test cases for the time library.
Estimated hours taken: 3
Branches: main

Revised the test cases for the time library.

tests/time_test.m:
	mktime(localtime(Time)) is now considered to be close enough to the
	original Time if it is less than 1 second earlier.

tests/dst_test.m:
	Tests daylight savings time is implemented correctly.
	Also tests localtime vs gmtime on the changeover dates.

tests/dst_test.exp:
	corresponding expected output.

tests/Mmakefile:
	Added dst_test to the list.
	Added rule for dst_test, which sets the TZ environmental variable
	to 'Australia/Melbourne' before running the test.
2003-12-17 05:32:16 +00:00