Unit Testing/1.0/Voting

From CommonJS Spec Wiki
< Unit Testing‎ | 1.0(Redirected from Unit Testing/A/Voting)
Jump to: navigation, search

Show of Hands

Assertion

  • assert.assert(actual, message_opt)
    • Tom Robinson
    • Ash Berlin
    • Kris Kowal
  • assert.is(true, actual, message_optl)
    • George Moschovitis
    • Raphael Speyer
  • assert.isTrue(actual, message_opt)
    • Neville Burnell
    • Chris Zumbrunn
    • Nathan Stott
  • assert.ok(action, message_opt)
    • Dean Landolt

Deep equivalence assertion

  • none
  • assert.eq(expected, actual, message_opt)
    • Kris Kowal
    • Ash Berlin
    • Ates Goral
  • assert.equal(expected, actual, message_opt)
    • Hannes Wallnöfer
    • George Moschovitis
    • Dean Landolt
    • Raphael Speyer
  • assert.isEqual(expected, actual, message_opt)
    • Chris Zumbrunn
    • Nathan Stott
  • assert.equals(expected, actual, message_opt)
  • assert.equiv(expected, actual, message_opt)
  • assert.equivalent(expected, actual, message_opt)

Deep non-equivalence assertion

  • none
  • assert.notEqual(expected, actual, message_opt)
    • Hannes Wallnöfer
    • George Moschovitis
    • Chris Zumbrunn
    • Dean Landolt
  • assert.ne(expected, actual, message_opt)
    • Kris Kowal
    • Ates Goral
    • Ash Berlin
  • assert.neq(expected, actual, message_opt)
    • Ates Goral
  • assert.notEqual(expected, actual, message_opt)
  • assert.notEquals(expected, actual, message_opt)
  • assert.notEquiv(expected, actual, message_opt)
  • assert.notEquivalent(expected, actual, message_opt)
  • assert.not.eq(expected, actual, message_opt)
  • assert.not.equal(expected, actual, message_opt)
    • Dean Landolt
    • Nathan Stott
    • Raphael Speyer

Object identity assertion

  • assert.same(expected, actual, message_opt)
    • Hannes Wallnöfer
    • Dean Landolt
    • Nathan Stott
    • Raphael Speyer
  • assert.is(expected, actual, message_opt)
    • Kris Kowal
    • Ash Berlin
  • assert.isIdentical(expected, actual, message_opt)
    • Chris Zumbrunn
  • assert.identical(expected, actual, message_opt)

Object non-identity

  • none
  • assert.notSame(expected, actual, message_opt)
    • Hannes Wallnöfer
    • Dean Landolt
  • assert.isnt(expected, actual, message_opt)
    • Ash Berlin
    • Ates Goral
  • assert.ni(expected, actual, message_opt)
  • assert.notIdentical(expected, actual, message_opt)
    • Chris Zumbrunn
  • assert.not.same
    • Dean Landolt
    • Nathan Stott
    • Raphael Speyer

Must throw error

  • none
  • assert.throws
    • Hannes Wallnöfer
    • Ash Berlin
    • George Moschovitis
    • Chris Zumbrunn
    • Dean Landolt
  • assert.error
    • Kris Kowal

Arguments

  1. (A) making (message, guard) and (guard) the accepted argument forms.
    • Daniel Friesen
  2. (B) making (guard, message) and (guard) the accepted argument forms.
    • Ash Berlin
    • Mark Porter
    • Kris Kowal
    • George Moschovitis
    • Hannes Wallnöfer
  1. (X) make the assertion message mandatory.
  2. (Y) make the assertion message optional.
    • Ash Berlin
    • Kris Kowal
    • Mark Porter
    • George Moschovitis
    • Hannes Wallnöfer