View this PageEdit this Page (locked)Attachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide
Hotspots: Admin Pages | Turn-in Site |
Current Links: Case Final Project Summer 2007

test cases



"Test cases for p1, cs2340 summer 2000"
"remember to filein ypatia.st and do Ypatia installAsTextStyle"

sub1 sup1 pi alpha sub2 sup2 blank
blank := 300@200.

sup1 := MathSuperscript from: '(x+1)' with: '(y+z)'.
sub1 := MathSubscript from: '(x+1)' with: '(y+z)'.

"students USE different methods to size greek fonts"
pi := GreekSymbol named: #Pi sized: 12.
alpha := GreekSymbol named: #alpha sized: 12.
self halt.
(MathEquation from: (MathSubscript from: 't' with: 'y')) display.
(Form extent: blank) display.
(MathEquation from: (MathSuperscript from: 't' with: 'y')) display.
(Form extent: blank) display.

(MathEquation from: (MathOperation operator:'' with: (MathSuperscript from: 'H' with: '2') and:
'O') ) display.
(Form extent: blank) display.
(MathEquation from: (MathOperation operator:'+' with: sub1 and: sup1)) display.
(Form extent: blank) display.

(MathEquation from: (MathFraction from: 'y' over: 'x') ) display.
(Form extent: blank) display.
(MathEquation from: (MathFraction from: 'sin(x)' over: '(y+1)') ) display.
(Form extent: blank) display.

(MathEquation from: (MathFraction from: sup1 over: sub1)) display.
(Form extent: blank) display.
(MathEquation from: (MathFraction from: sub1 over: sup1)) display.
(Form extent: blank) display.

sup2 := MathSubscript from: 't' with: pi.
sub2 := MathSuperscript from: 't' with: alpha.
(MathEquation from: sup2) display.
(Form extent: blank) display.
(MathEquation from: sub2) display.

(MathEquation from: (MathFraction from: sup2 over: sub2)) display.
(Form extent: blank) display.
(MathEquation from: (MathFraction from: sub2 over: sup2)) display.

Link to this Page