Spec-Zone.ru › Pony

Fact

[Source]

This is an assertion that is always enabled. If the test is false, it will print any supplied error message to stderr and raise an error.

primitive val Fact

Constructors

create

[Source]

new val create()
: Fact val^

Returns

  • Fact val^

Public Functions

apply

[Source]

fun box apply(
  test: Bool val,
  msg: String val = "")
: None val ?

Parameters

  • test: Bool val
  • msg: String val = ""

Returns

  • None val ?

eq

[Source]

fun box eq(
  that: Fact val)
: Bool val

Parameters

  • that: Fact val

Returns

  • Bool val

ne

[Source]

fun box ne(
  that: Fact val)
: Bool val

Parameters

  • that: Fact val

Returns

  • Bool val

© 2016-2020, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/assert-Fact

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API