Commit Graph

3 Commits

Author SHA1 Message Date
Zoltan Somogyi
33eb3028f5 Clean up the tests in half the test directories.
tests/accumulator/*.m:
tests/analysis_*/*.m:
tests/benchmarks*/*.m:
tests/debugger*/*.{m,exp,inp}:
tests/declarative_debugger*/*.{m,exp,inp}:
tests/dppd*/*.m:
tests/exceptions*/*.m:
tests/general*/*.m:
tests/grade_subdirs*/*.m:
tests/hard_coded*/*.m:
    Make these tests use four-space indentation, and ensure that
    each module is imported on its own line. (I intend to use the latter
    to figure out which subdirectories' tests can be executed in parallel.)

    These changes usually move code to different lines. For the debugger tests,
    specify the new line numbers in .inp files and expect them in .exp files.
2015-02-14 20:14:03 +11:00
Zoltan Somogyi
4292e6fd94 Fix an old bug: don't insist that two parts of the same field access
Estimated hours taken: 0.5
Branches: main

compiler/prog_io.m:
	Fix an old bug: don't insist that two parts of the same field access
	goal have the same context.

	Always get the context for field access goals from the ^ character.

tests/hard_coded/field_access.m:
	Modify this old test case by giving different parts of a field access
	different contexts. The old version of the compiler mistakenly rejects
	it, but the fixed version accepts it.
2008-12-03 05:06:07 +00:00
Ralph Becket
6dd11c5583 Allow field access syntax at the top-level of func and mode declarations and
Estimated hours taken: 3
Branches: main

Allow field access syntax at the top-level of func and mode declarations and
in function clause heads.

NEWS:
	Report the new feature.

doc/reference_manual.texi:
	Document the new feature.

compiler/prog_io.m:
	Implement the new feature.

tests/hard_coded/Mmakefile:
tests/hard_coded/field_syntax.exp:
tests/hard_coded/field_syntax.m:
	Added a test case.
2003-01-16 02:34:35 +00:00