forked from Submitty/Submitty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdifference.h
42 lines (33 loc) · 839 Bytes
/
difference.h
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
#ifndef __differences__difference__
#define __differences__difference__
#include <string>
#include <vector>
#include "change.h"
#include "testResults.h"
#include <nlohmann/json.hpp>
#define tab " "
#define OtherType 0
#define ByLineByChar 1
class Difference: public TestResults {
public:
Difference();
std::vector<Change> changes;
std::vector<int> diff_a; //student
std::vector<int> diff_b; //expected
void printJSON(std::ostream & file_out);
int output_length_a;
int output_length_b;
int edit_distance;
int type;
bool extraStudentOutputOk;
bool only_whitespace_changes;
int line_added;
int line_deleted;
int total_line;
int char_added;
int char_deleted;
int total_char;
std::string message;
void PrepareGrade(const nlohmann::json& j);
};
#endif /* defined(__differences__difference__) */