Edit

kc3-lang/kc3/test/ikc3/list.out.expected

Branch :

  • Show log

    Commit

  • Author : thodg Thomas de Grivel
    Date : 2025-03-14 17:46:13
    Hash : 49d50d72
    Message : fix tests for buf_parse_list which was fixed by sym_character_is_reserved

  • test/ikc3/list.out.expected
  • []
    [[]]
    [[], []]
    [[], [], []]
    [[], [], [], []]
    [[], []]
    [[], [], []]
    [[], [], []]
    [[], [], [], []]
    [[], []]
    [[], [], []]
    [[], [], [], []]
    [[[], []], [], []]
    [[[]], []]
    [:a]
    [:a, :b]
    [:a, :b, :c]
    [:a | :b]
    [:a, :b | :c]
    [:a, :b, :c, :d]
    [:a, :b, :c | :d]
    [:a, :b, :c | :d]
    List.map([1, 2, 3, 4], fn (x) { x * 2 })
    [2, 4, 6, 8]
    List.reverse([1, 2, 3, 4])
    [4, 3, 2, 1]
    List.has?([:read], :read)
    true
    List.has?([:read], :write)
    false
    List.join(["1", "2", "3"], ", ")
    "1, 2, 3"
    List.each([1, 2, 3], fn (x) { puts(x) })
    1
    2
    3
    true
    List.last([1, 2, 3])
    3
    List.slice([1, 2, 3, 4, 5], 2, 4)
    [3, 4]
    List.length([])
    0
    List.length([1])
    1
    List.length([1, 2])
    2
    List.length([1, 2, 3, 4, 5])
    5
    type(":")
    Str
    [":"]
    [":"]