Back to index

plt-scheme  4.2.1
Package Functions | Package Attributes
CarExamples Class Reference
Collaboration diagram for CarExamples:
Collaboration graph
[legend]

List of all members.

Package Functions

 CarExamples ()
boolean testTravel ()
boolean testMakeModel ()
boolean testPrice ()
boolean testTravel ()
boolean testTravel2 ()
boolean testPrice ()

Package Attributes

Car myCar = new Car("Toyota","Tercel",100000, 16000.00)
Car momCar = new Car("Honda","Excel",10000, 32000.00)
boolean test1 = check this.myCar expect this.momCar
boolean test2 = check this.myCar.milesTraveled() expect 100000

Detailed Description

Definition at line 53 of file beginnerTest.java.


Constructor & Destructor Documentation

CarExamples.CarExamples ( ) [inline, package]

Definition at line 55 of file beginnerTest.java.

{ }

Member Function Documentation

boolean CarExamples.testMakeModel ( ) [inline, package]

Definition at line 68 of file beginnerTest.java.

                          {
    return check this.myCar.makeAndModel() expect "ToyotaTercel";
  }

Here is the call graph for this function:

boolean CarExamples.testPrice ( ) [inline, package]

Definition at line 60 of file intermediateTest.java.

                      {
    return (check this.myCar.price(2006) expect 16000.00 within .01) &&
    (check this.myCar.price(1991) expect 14933.33 within .01) &&
    (check this.myCar.price(2007) expect 32000.00 within .01);
  }

Here is the call graph for this function:

boolean CarExamples.testPrice ( ) [inline, package]

Definition at line 72 of file beginnerTest.java.

                      {
    return (check this.myCar.price(2006) expect 16000.00 within .01) &&
    (check this.myCar.price(1991) expect 14933.33 within .01) &&
    (check this.myCar.price(2007) expect 32000.00 within .01);
  }

Here is the call graph for this function:

boolean CarExamples.testTravel ( ) [inline, package]

Definition at line 50 of file intermediateTest.java.

                       {
    myCar.travel(10);
    return (check this.myCar expect new Car(100010, 16000.00));
  }

Here is the call graph for this function:

boolean CarExamples.testTravel ( ) [inline, package]

Definition at line 63 of file beginnerTest.java.

                       {
    return (check this.myCar.travel(10) expect new Car("Toyota","Tercel",100010, 16000.00)) ||
    (check this.momCar.travel(90000) expect this.myCar);
  }

Here is the call graph for this function:

boolean CarExamples.testTravel2 ( ) [inline, package]

Definition at line 55 of file intermediateTest.java.

                        {
    myCar.travel(10);
    return (check this.myCar expect new Car(100020, 16000.00));
  }

Here is the call graph for this function:


Member Data Documentation

Car CarExamples.momCar = new Car("Honda","Excel",10000, 32000.00) [package]

Definition at line 58 of file beginnerTest.java.

Car CarExamples.myCar = new Car("Toyota","Tercel",100000, 16000.00) [package]

Definition at line 57 of file beginnerTest.java.

boolean CarExamples.test1 = check this.myCar expect this.momCar [package]

Definition at line 60 of file beginnerTest.java.

boolean CarExamples.test2 = check this.myCar.milesTraveled() expect 100000 [package]

Definition at line 61 of file beginnerTest.java.


The documentation for this class was generated from the following files: