- public_test_cases = test_cases.select(&:public_test?)
- private_test_cases = test_cases.select(&:private_test?)
- evaluation_test_cases = test_cases.select(&:evaluation_test?)

h2 = t('.test_cases')

table.table.table-striped.table-hover
  thead
    tr
      th = t('.identifier')
      th = t('.expression')
      th = t('.expected')
      th = t('.hint')
  tbody
    tr
      th colspan=4
        = t('.public')
    - public_test_cases.each do |test_case|
      = content_tag_for(:tr, test_case) do
        th = test_case.identifier
        td = test_case.expression
        td = test_case.expected
        td = test_case.hint
  tbody
    tr
      th colspan=4
        = t('.private')
    - private_test_cases.each do |test_case|
      = content_tag_for(:tr, test_case) do
        th = test_case.identifier
        td = test_case.expression
        td = test_case.expected
        td = test_case.hint
        td
  tbody
    tr
      th colspan=4
        = t('.evaluation')
    - evaluation_test_cases.each do |test_case|
      = content_tag_for(:tr, test_case) do
        th = test_case.identifier
        td = test_case.expression
        td = test_case.expected
        td = test_case.hint
        td

- public_test_cases = test_cases.select(&:public_test?)
- private_test_cases = test_cases.select(&:private_test?)
- evaluation_test_cases = test_cases.select(&:evaluation_test?)

h2 = t('.test_cases')

table.table.table-striped.table-hover
  thead
    tr
      th = t('.identifier')
      th = t('.expression')
      th = t('.expected')
      th = t('.hint')
  tbody
    tr
      th colspan=4
        = t('.public')
    - public_test_cases.each do |test_case|
      = content_tag_for(:tr, test_case) do
        th = test_case.identifier
        td = test_case.expression
        td 
          div.expected = test_case.expected
        td = test_case.hint
  tbody
    tr
      th colspan=4
        = t('.private')
    - private_test_cases.each do |test_case|
      = content_tag_for(:tr, test_case) do
        th = test_case.identifier
        td = test_case.expression
        td 
          div.expected = test_case.expected
        td = test_case.hint
        td
  tbody
    tr
      th colspan=4
        = t('.evaluation')
    - evaluation_test_cases.each do |test_case|
      = content_tag_for(:tr, test_case) do
        th = test_case.identifier
        td = test_case.expression
        td 
          div.expected = test_case.expected
        td = test_case.hint
        td

Apply expected div to test case question form.
Apply expected div to test case question form.

Allows the expected value of the test cases on the question edit form
to be shortened.

Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,cysjonathan/coursemology2,cysjonathan/coursemology2,cysjonathan/coursemology2