labs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
labs [2015/05/30 10:13] – jackie | labs [2015/06/08 00:20] (current) – jackie | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Weekly Lab Exercises ====== | ====== Weekly Lab Exercises ====== | ||
+ | |||
+ | === Week 3 (June 4) === | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | - [[https:// | ||
+ | - [[https:// | ||
+ | - [[https:// | ||
=== Week 2 (May 28) === | === Week 2 (May 28) === | ||
Line 5: | Line 13: | ||
[[https:// | [[https:// | ||
- | | + | |
- | * After following the video, you are asked to complete the contracts, implementations, | + | * After following the video, you are asked to complete the **contracts**, **implementations**, and **tests** for both //BOOK// and // |
+ | * You are also asked to try with **all** the four possible implementations (i.e., two // | ||
+ | - [[https:// | ||
+ | * After following the video, you are asked to complete the **contracts**, | ||
+ | * You are also asked to try with **both** of the possible implementations (i.e., an //ARRAY//, a // | ||
=== Week 1 (May 21) === | === Week 1 (May 21) === | ||
- | Exercise 1 (follow | + | - Exercise 1 |
- | * Launch Eiffel Studio (estudio15.01 &) | + | * Follow |
- | * Create an empty project named //bank// | + | - [[https:// |
- | * Add the //espec// library from the project setting | + | - [[https:// |
- | * From the clusters explorer, add a new class // | + | - [[https://svn.eecs.yorku.ca/repos/3311/2015S/Public/slides/EECS3311-S15_01A_Overview.pdf|slides]] |
- | * Copy from slides | + | |
- | * From the clusters explorer, add a new class // | + | * Download and unzip a version of the [[https:// |
- | * Choose //ES_TEST// as the parent of this class | + | * Compile the project. |
- | * Copy from slide 23 the code of // | + | * Run Workbench System (described above) |
- | * Add Boolean queries // | + | * All tests should fail! |
- | * Add these queries and procedures as test cases as shown in slide 23 | + | * This is because the implementation and contracts (pre- and post-condition, |
- | * Launch the tests (click on the small down arrow to the right of the //Run// button, then choose //Run Workbench System//) | + | * Complete all the missing implementations and contracts. |
- | * If the tests fail, set break points and debug, and rerun the tests. | + | * Use breakpoints and the debugger to identify the bugs, if any. |
- | | + | * Repeat until you can pass all tests. |
- | + | ||
- | Exercise 2: | + | |
- | * Download and unzip a version of the [[https:// | + | |
- | * Compile the project. | + | |
- | * Run Workbench System (described above) | + | |
- | * All tests should fail! | + | |
- | * This is because the implementation and contracts (pre- and post-condition, | + | |
- | * Complete all the missing implementations and contracts. | + | |
- | * Use breakpoints and the debugger to identify the bugs, if any. | + | |
- | * Repeat until you can pass all tests. | + | |
labs.1432980780.txt.gz · Last modified: 2015/05/30 10:13 by jackie