changeset 2627:d0c7ab30eb58 octave-forge

Fix some of the new test code
author adb014
date Sun, 08 Oct 2006 19:48:28 +0000
parents 1c3458564078
children b12c091c07e5
files main/comm/inst/fiboenco.m main/comm/inst/fibosplitstream.m main/comm/inst/huffmandict.m
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/main/comm/inst/fiboenco.m	Sun Oct 08 18:03:09 2006 +0000
+++ b/main/comm/inst/fiboenco.m	Sun Oct 08 19:48:28 2006 +0000
@@ -87,5 +87,5 @@
      return
 end
 %!
-%!assert(fibodec(fiboenco(1:600)),[1:600])
+%!assert(fibodeco(fiboenco(1:600)),[1:600])
 %!
--- a/main/comm/inst/fibosplitstream.m	Sun Oct 08 18:03:09 2006 +0000
+++ b/main/comm/inst/fibosplitstream.m	Sun Oct 08 19:48:28 2006 +0000
@@ -79,5 +79,5 @@
   return
 end
 %!
-%!assert(fibodeco(fibosplitstream([fiboenco(1:10)){:}]),[1:10])
+%!assert(fibodeco(fibosplitstream([fiboenco(1:10){:}])),[1:10])
 %!
--- a/main/comm/inst/huffmandict.m	Sun Oct 08 18:03:09 2006 +0000
+++ b/main/comm/inst/huffmandict.m	Sun Oct 08 19:48:28 2006 +0000
@@ -233,5 +233,5 @@
 end
 %!
 %!assert(huffmandict(1:4,[0.5 0.25 0.15 0.1],1), {[0],[1 0],[1 1 1],[1 1 0]},0)
-%!assert(huffman(0.25*ones(1,4),1),{[1 1],[1 0],[0 1],[0 0]},0)
+%!assert(huffmandict(1:4,0.25*ones(1,4),1),{[1 1],[1 0],[0 1],[0 0]},0)
 %!