test_PatternList.praat 747 B

1234567891011121314151617181920212223242526272829303132333435
  1. # test_PatternList.praat
  2. # djmw 20151020, 20160524
  3. appendInfoLine: "test_PatternList.praat"
  4. appendInfoLine: tab$ , "Read old format from disk"
  5. old = Read from file: "old_type.Pattern"
  6. removeObject: old
  7. appendInfoLine: tab$ , "Read old format OK"
  8. @test_with_old_type
  9. procedure test_with_old_type
  10. for irun to 2
  11. nrows = 10
  12. for ncols to 10
  13. tab = Create simple Matrix: "act", nrows, ncols, "0"
  14. act = To Pattern: 1
  15. Formula: ~ randomUniform (0, 0.99)
  16. mat = To Matrix
  17. for irow to nrows
  18. for icol to ncols
  19. val = Get value in cell: irow, icol
  20. assert 0<= val and val <= 0.99; 'irow' icol' 'val'
  21. endfor
  22. endfor
  23. removeObject: tab, act, mat
  24. endfor
  25. endfor
  26. endproc
  27. appendInfoLine: "test_PatternList.praat OK"