Skip to content

Commit

Permalink
removed temp fix (sort direct pair responses) for delivery engine error
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcelh1983 committed Apr 18, 2024
1 parent 856f9e4 commit ca71dff
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
</outcomeVariable>
<responseVariable identifier="RESPONSE" cardinality="single" baseType="directedPair">
<candidateResponse>
<value>HSA B</value>
<value>HSB D</value>
<value>HSC C</value>
<value>HSD A</value>
<value>B HSA</value>
<value>D HSB</value>
<value>C HSC</value>
<value>A HSD</value>
</candidateResponse>
</responseVariable>
</itemResult>
Expand Down
10 changes: 5 additions & 5 deletions Scoring/Helpers/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ internal static bool CompareSingleValues(string value1, string value2, BaseType
{
// sort values because order is not important
// WORKAROUND TO SUPPORT DIRECT PAIRS MIXED UP. ACTUALLY SHOULD ONLY BE SORTED FOR PAIRS
// if (baseType == BaseType.Pair)
// {
pair1.Sort();
pair2.Sort();
// }
if (baseType == BaseType.Pair)
{
pair1.Sort();
pair2.Sort();
}
return string.Join(" ", pair1) == string.Join(" ", pair2);
}
else
Expand Down
2 changes: 1 addition & 1 deletion Scoring/ScoringEngine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<RootNamespace>Citolab.QTI.ScoringEngine</RootNamespace>
<ProjectGuid>{2A7091CD-6A49-4B7B-85BB-A140C8B5397C}</ProjectGuid>
<PackageId>Citolab.QTI.ScoringEngine</PackageId>
<Version>1.3.0</Version>
<Version>1.3.1</Version>
<Company>Cito</Company>
<Copyright>Stichting Cito Instituut voor Toetsontwikkeling, Arnhem (2023)</Copyright>
<Authors>Citolab</Authors>
Expand Down
4 changes: 4 additions & 0 deletions release_notes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.3.1

- removed temp fix for delivery engine error to sort directPairs. Only pairs are sorted as the QTI spec describes.

## 1.3.0

- support: qti-max + qti-min
Expand Down

0 comments on commit ca71dff

Please sign in to comment.