@@ -44,7 +44,7 @@ class RenderNodeSerializationTests: XCTestCase {
44
44
. strong( inlineContent: [ . text( " Project > Run " ) ] ) ,
45
45
. text( " menu item, or the following code: " ) ,
46
46
] ) ) ,
47
- . codeListing( . init( syntax: " swift " , code: [ " xcrun xcodebuild -h " , " xcrun xcodebuild build -configuration Debug " ] , metadata: nil , copyToClipboard: false , wrap: 0 , highlight: [ ] , strikeout: [ ] ) ) ,
47
+ . codeListing( . init( syntax: " swift " , code: [ " xcrun xcodebuild -h " , " xcrun xcodebuild build -configuration Debug " ] , metadata: nil , copyToClipboard: false , wrap: 0 , highlight: [ ] , strikeout: [ ] , showLineNumbers : false ) ) ,
48
48
] ) )
49
49
]
50
50
@@ -71,16 +71,16 @@ class RenderNodeSerializationTests: XCTestCase {
71
71
let assessment1 = TutorialAssessmentsRenderSection . Assessment ( title: [ . paragraph( . init( inlineContent: [ . text( " Lorem ipsum dolor sit amet? " ) ] ) ) ] ,
72
72
content: nil ,
73
73
choices: [
74
- . init( content: [ . codeListing( . init( syntax: " swift " , code: [ " override func viewDidLoad() { " , " super.viewDidLoad() " , " } " ] , metadata: nil , copyToClipboard: false , wrap: 0 , highlight: [ ] , strikeout: [ ] ) ) ] , isCorrect: true , justification: [ . paragraph( . init( inlineContent: [ . text( " It's correct because... " ) ] ) ) ] , reaction: " That's right! " ) ,
75
- . init( content: [ . codeListing( . init( syntax: " swift " , code: [ " sceneView.delegate = self " ] , metadata: nil , copyToClipboard: false , wrap: 0 , highlight: [ ] , strikeout: [ ] ) ) ] , isCorrect: false , justification: [ . paragraph( . init( inlineContent: [ . text( " It's incorrect because... " ) ] ) ) ] , reaction: " Not quite. " ) ,
74
+ . init( content: [ . codeListing( . init( syntax: " swift " , code: [ " override func viewDidLoad() { " , " super.viewDidLoad() " , " } " ] , metadata: nil , copyToClipboard: false , wrap: 0 , highlight: [ ] , strikeout: [ ] , showLineNumbers : false ) ) ] , isCorrect: true , justification: [ . paragraph( . init( inlineContent: [ . text( " It's correct because... " ) ] ) ) ] , reaction: " That's right! " ) ,
75
+ . init( content: [ . codeListing( . init( syntax: " swift " , code: [ " sceneView.delegate = self " ] , metadata: nil , copyToClipboard: false , wrap: 0 , highlight: [ ] , strikeout: [ ] , showLineNumbers : false ) ) ] , isCorrect: false , justification: [ . paragraph( . init( inlineContent: [ . text( " It's incorrect because... " ) ] ) ) ] , reaction: " Not quite. " ) ,
76
76
. init( content: [ . paragraph( . init( inlineContent: [ . text( " None of the above. " ) ] ) ) ] , isCorrect: false , justification: [ . paragraph( . init( inlineContent: [ . text( " It's incorrect because... " ) ] ) ) ] , reaction: nil ) ,
77
77
] )
78
78
79
79
let assessment2 = TutorialAssessmentsRenderSection . Assessment ( title: [ . paragraph( . init( inlineContent: [ . text( " Duis aute irure dolor in reprehenderit? " ) ] ) ) ] ,
80
80
content: [ . paragraph( . init( inlineContent: [ . text( " What is the airspeed velocity of an unladen swallow? " ) ] ) ) ] ,
81
81
choices: [
82
- . init( content: [ . codeListing( . init( syntax: " swift " , code: [ " super.viewWillAppear() " ] , metadata: nil , copyToClipboard: false , wrap: 0 , highlight: [ ] , strikeout: [ ] ) ) ] , isCorrect: true , justification: [ . paragraph( . init( inlineContent: [ . text( " It's correct because... " ) ] ) ) ] , reaction: " Correct. " ) ,
83
- . init( content: [ . codeListing( . init( syntax: " swift " , code: [ " sceneView.delegate = self " ] , metadata: nil , copyToClipboard: false , wrap: 0 , highlight: [ ] , strikeout: [ ] ) ) ] , isCorrect: true , justification: [ . paragraph( . init( inlineContent: [ . text( " It's correct because... " ) ] ) ) ] , reaction: " Yep. " ) ,
82
+ . init( content: [ . codeListing( . init( syntax: " swift " , code: [ " super.viewWillAppear() " ] , metadata: nil , copyToClipboard: false , wrap: 0 , highlight: [ ] , strikeout: [ ] , showLineNumbers : false ) ) ] , isCorrect: true , justification: [ . paragraph( . init( inlineContent: [ . text( " It's correct because... " ) ] ) ) ] , reaction: " Correct. " ) ,
83
+ . init( content: [ . codeListing( . init( syntax: " swift " , code: [ " sceneView.delegate = self " ] , metadata: nil , copyToClipboard: false , wrap: 0 , highlight: [ ] , strikeout: [ ] , showLineNumbers : false ) ) ] , isCorrect: true , justification: [ . paragraph( . init( inlineContent: [ . text( " It's correct because... " ) ] ) ) ] , reaction: " Yep. " ) ,
84
84
. init( content: [ . paragraph( . init( inlineContent: [ . text( " None of the above. " ) ] ) ) ] , isCorrect: false , justification: [ . paragraph( . init( inlineContent: [ . text( " It's incorrect because... " ) ] ) ) ] , reaction: " Close! " ) ,
85
85
] )
86
86
0 commit comments