[system] / trunk / pg / macros / contextString.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/contextString.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 5551 Revision 5555
7Implements contexts for string-valued answers. 7Implements contexts for string-valued answers.
8 8
9You can add new strings to the context as needed 9You can add new strings to the context as needed
10via the Context()->strings->add() method. E.g., 10via the Context()->strings->add() method. E.g.,
11 11
12 Context("String")->strings->add(Foo=>{}, Bar=>{alias=>"Foo"}); 12 Context("String")->strings->add(Foo=>{}, Bar=>{alias=>"Foo"});
13 13
14Use string_cmp() to produce the answer checker(s) for your 14Use string_cmp() to produce the answer checker(s) for your
15correct values. Eg. 15correct values. Eg.
16 16
17 ANS(string_cmp("Foo")); 17 ANS(string_cmp("Foo"));
18 18
19=cut 19=cut
20 20
21loadMacros("MathObjects.pl"); 21loadMacros("MathObjects.pl");
22 22

Legend:
Removed from v.5551  
changed lines
  Added in v.5555

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9