-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcoursework6.fsx
63 lines (45 loc) · 2.21 KB
/
coursework6.fsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
(*
ITT8060 -- Advanced Programming 2015
Department of Computer Science
Tallinn University of Technology
------------------------------------------------
Coursework 6: Testing
------------------------------------------------
Name:
Student ID:
------------------------------------------------
Answer the questions below. You answers to the questions should be correct F#
code written after the question. This file is an F# script file; it should be
possible to load the whole file at once. If you can't, then you have
introduced a syntax error somewhere.
This coursework will be graded.
Commit and push your script part of the solution to the repository as
file coursework6.fsx in directory coursework6.
The file that should be compiled to a dll should go into coursework6.fs.
Please do not upload DLL-s. Just include a readme.txt file containing the
dependencies required (additional DLLs)
The deadline for completing the above procedure is Friday, November 13, 2015.
We will consider the submission to be the latest version of the appropriate
files in the appropriate directory before the deadline of a particular
coursework.
*)
(*
One of your former colleagues wrote some code to convert Roman numbers to Arabic
numbers. After writing this code he left for greener pastures at a new
and cool startup.
You are now left to make sure the code he wrote works and can be shipped to the
customer, one of the largest banks in the region and the most important one to
your company.
*)
(* 1) You are given the code in file coursework6input/Library1.fs that can be
compiled to BrokenRomanNumbers.dll.
You are expected to test the code using NUnit or FsUnit unit tests (at least 6 in total).
*)
(* 2) List faults discovered as a table. Please try to shrink the inputs
to the smallest samples corresponding to the appropriate fault.
RomanNumber ExpectedOutput OutputFromConvert
*)
(* 3) Write a CorrectRomanNumbers implementation in functional style that you
would be confident to include in mission critical applications. Test the
implementation using the tests defined previously.
*)