Files
mercury/tests/hard_coded/pprint_test.exp
Zoltan Somogyi 696414ecd8 Clean up this file a bit, to make future merges with the
Estimated hours taken: 1.5
Branches: main

library/pprint.m:
	Clean up this file a bit, to make future merges with the
	mode-constraints branch easier.

	Add special casing for variables and sparse bitsets, since these can be
	useful.

	Group predicates and functions logically.

	Put the casting predicates and the *_to_doc functions for the special
	cases in the same order as the special case tests in to_doc itself.

	Shorten excessively long dividing lines.

tests/hard_coded/pprint_test.{m,exp}:
	A new test case to test the new additions to to_doc.

tests/hard_coded/Mmakefile:
	Enable the new test case.
2002-07-16 08:10:48 +00:00

12 lines
160 B
Plaintext

1
2
[5, 6]
["five", "six", "seven"]
[1, 2]
sparse_bitset([42])
sparse_bitset([42, 84])
map([41 -> 42])
map([41 -> 42, 82 -> 83])
array([1, 2, 3])
{7, 8, "abc"}