diff options
| author | Graydon Hoare <[email protected]> | 2010-09-15 18:22:10 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-09-15 18:22:10 -0700 |
| commit | cd1a765c6f635c7cf9d39a46f42c93a2cbbf1982 (patch) | |
| tree | 2ac85f1ed7ede99a498f90dd0ecb56239b4e92f9 /src/test/bench/shootout/binary-trees.rs | |
| parent | Minor improvements to pretty-printer. (diff) | |
| download | rust-cd1a765c6f635c7cf9d39a46f42c93a2cbbf1982.tar.xz rust-cd1a765c6f635c7cf9d39a46f42c93a2cbbf1982.zip | |
Add Peter Hull's contributed translation of the fasta shootout benchmark (integer-only version).
Diffstat (limited to 'src/test/bench/shootout/binary-trees.rs')
| -rw-r--r-- | src/test/bench/shootout/binary-trees.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/bench/shootout/binary-trees.rs b/src/test/bench/shootout/binary-trees.rs index bb3ab602..669cd809 100644 --- a/src/test/bench/shootout/binary-trees.rs +++ b/src/test/bench/shootout/binary-trees.rs @@ -1,4 +1,7 @@ -type tree = tag(nil(), node(@tree, @tree, int)); +tag tree { + nil(); + node(@tree, @tree, int); +} fn item_check(&tree t) -> int { alt (t) { |