Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 059758a

Browse files
committed
🐛 Fix i18n for hparsons.
1 parent a3e80c5 commit 059758a

2 files changed

Lines changed: 3 additions & 24 deletions

File tree

runestone/hparsons/js/BlockFeedback.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import HParsonsFeedback from "./hparsonsFeedback";
22
import BlockBasedGrader from "./blockGrader.js";
3+
import "../../parsons/js/parsons-i18n.en.js";
4+
import "../../parsons/js/parsons-i18n.pt-br.js";
35

46
export default class BlockFeedback extends HParsonsFeedback {
57
createOutput() {

runestone/hparsons/test/_sources/index.rst

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,14 @@ Randomized Block with Block Based Feedback
1313
:randomize:
1414
:blockanswer: 0 1 2 3
1515

16-
This is a horizontal Parsons problem! Feedback is based on code execution.
16+
This is a horizontal Parsons problem! Feedback is based on block for this problem.
1717
The blocks are randomized, but cannot be reused ;)
1818
~~~~
1919
--blocks--
2020
SELECT
2121
*
2222
FROM
2323
test
24-
--unittest--
25-
assert 1,1 == world
26-
assert 0,1 == hello
27-
assert 2,1 == 42
28-
29-
30-
.. parsonsprob:: test_parsons_1
31-
:adaptive:
32-
:order: 0 1 2 3 4
33-
34-
need some text ?
35-
-----
36-
def fib(num):
37-
=====
38-
if num == 0:
39-
return 0:
40-
=====
41-
if num == 1:
42-
return 1:
43-
=====
44-
return fib(num - 1) + fib(num - 2)
45-
=====
46-
return fib(num - 1) * fib(num - 2) #paired
4724

4825

4926
Randomized Block with Execution Based Feedback

0 commit comments

Comments
 (0)