| Author |
Comment/Response |
Ameya
|
05/29/12 07:19am
Hello,
I am using Wolfram workbench and wish to test my code before I implement it. An example of my test file is as follows:
(* Test file Start *)
data = BinaryReadList["TestFile.xyz"];
Test[
ABC[data], (* ABC is a function that takes data (a random list of dimensions 30000 x 290) as input and gives a (random) list of dimension 255 x 2 as output *)
??,(* How can I know the expected value of the (random) list (255 x 2) in advance?*)
TestID->"Test-20120512-E2Q0P0"
]
Clear[data]
(* Test file End *)
My question is as given in the comment above in the code; How can I know the expected value of the (random) list (255 x 2) in advance? In other words, how can write a test file for my application?
Is the test file only useful when testing very simple functions that give only a single value as output?
Thanks,
Ameya
URL: , |
|