testing alpha-vary

9 views
Skip to first unread message

Nate Cerny

unread,
Apr 5, 2011, 9:04:34 PM4/5/11
to byu-cs-330-Winter-2011
How are we supposed to test our alpha-vary function? We have no way to
tell what identifier values will be returned from gensym, since it is
different every time. Do we just not need to worry about testing for
it?

Bryan Morse

unread,
Apr 5, 2011, 9:26:45 PM4/5/11
to byu-cs-330-...@googlegroups.com
If you get everything else working then test infer-type with something that has shadowing, that should verify whether your alpha-vary function is working. When you first code it, though, you'll probably have to just test it by manually inspecting the output of some sample inputs.

James Fiala

unread,
Apr 7, 2011, 7:50:00 PM4/7/11
to byu-cs-330-...@googlegroups.com
So, we're manually inspecting it and commenting out the tests we inspected, but are we to assume that no points will be given for alpha vary tests (and what about the alpha vary tests that we can check since not all require random symbol generation)?
Sent from my phone. Sorry if its brief.

Bryan Morse

unread,
Apr 7, 2011, 7:51:43 PM4/7/11
to byu-cs-330-...@googlegroups.com
Right. You can demonstrate (and get credit for) that working by testing infer-type with expressions that have nested scoping.
Reply all
Reply to author
Forward
0 new messages