summary refs log tree commit diff stats
path: root/tests/stdlib/tglobs.nim
blob: 4aa21992c3e34da44fc8e9a9287158f28d534381 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
discard """
  matrix: "--mm:refc; --mm:orc"
"""

import std/private/globs
import std/assertions

template main =
  when defined(windows):
    doAssert nativeToUnixPath("C:") == "/C"
    doAssert nativeToUnixPath(r"D:\") == "/D/"
    doAssert nativeToUnixPath(r"E:\a") == "/E/a"
    doAssert nativeToUnixPath(r"E:\a1\") == "/E/a1/"
    doAssert nativeToUnixPath(r"E:\a1\bc") == "/E/a1/bc"
    doAssert nativeToUnixPath(r"\a1\bc") == "/a1/bc"
    doAssert nativeToUnixPath(r"a1\bc") == "a1/bc"
    doAssert nativeToUnixPath("a1") == "a1"
    doAssert nativeToUnixPath("") == ""
    doAssert nativeToUnixPath(".") == "."
    doAssert nativeToUnixPath("..") == ".."
    doAssert nativeToUnixPath(r"..\") == "../"
    doAssert nativeToUnixPath(r"..\..\.\") == "../.././"

static: main()
main()
.kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
export default [
  {
    level: 50,
    name: "Eurekan deathgaze",
    type: 2,
    elem: "Thunder",
    conditions: { day: [], night: [1, 7, 5] },
  },
  {
    level: 50,
    name: "Val nanka",
    type: 1,
    elem: "Water",
    conditions: { day: [6], night: [0, 7, 5, 6] },
  },
  {
    level: 50,
    name: "Sabotender Mariachi",
    type: 0,
    elem: null,
    conditions: { day: [], night: [] },
  },
  {
    level: 51,
    name: "Hydatos Slug",
    type: 0,
    elem: null,
    conditions: { day: [], night: [] },
  },
  {
    level: 51,
    name: "Hydatos Pudding",
    type: 2,
    elem: "Earth",
    conditions: { day: [1, 7], night: [1] },
  },
  {
    level: 51,
    name: "Laboratory Coeurl",
    type: 1,
    elem: "Fire",
    conditions: { day: [], night: [1, 7] },
  },
  {
    level: 52,
    name: "Val Chigoe",
    type: 1,
    elem: "Wind",
    conditions: { day: [], night: [0] },
  },
  {
    level: 52,
    name: "Hydatos Nix",
    type: 0,
    elem: null,
    conditions: { day: [], night: [] },
  },
  {
    level: 52,
    name: "Hydatos Ziz",
    type: 0,
    elem: null,
    conditions: { day: [], night: [] },
  },
  {
    level: 53,
    name: "Dark Gaelicat",
    type: 0,
    elem: null,
    conditions: { day: [], night: [] },
  },
  {
    level: 53,
    name: "Hydatos Grenade",
    type: 1,
    elem: "Earth",
    conditions: { day: [], night: [1, 7, 5, 6] },
  },
  {
    level: 53,
    name: "Hydatos Vepar",
    type: 0,
    elem: null,
    conditions: { day: [], night: [] },
  },
  {
    level: 54,
    name: "Laboratory Rat",
    type: 1,
    elem: "Ice",
    conditions: { day: [5], night: [5] },
  },
  {
    level: 54,
    name: "Nestless Cockerel",
    type: 2,
    elem: "Wind",
    conditions: { day: [7, 6], night: [5] },
  },
  {
    level: 54,
    name: "Hydatos Elbst",
    type: 0,
    elem: null,
    conditions: { day: [], night: [] },
  },
  {
    level: 55,
    name: "Hydatos Tsanahale",
    type: 1,
    elem: "Wind",
    conditions: { day: [7], night: [7] },
  },
  {
    level: 55,
    name: "Nomadic Matanga",
    type: 1,
    elem: "Earth",
    conditions: { day: [0], night: [] },
  },
  {
    level: 56,
    name: "Val Tulihand",
    type: 1,
    elem: "Ice",
    conditions: { day: [0], night: [0] },
  },
  {
    level: 56,
    name: "Val Antelope",
    type: 1,
    elem: "Fire",
    conditions: { day: [7], night: [7] },
  },
  {
    level: 57,
    name: "Lake Yabby",
    type: 1,
    elem: "Water",
    conditions: { day: [1, 7, 5, 6], night: [] },
  },
  {
    level: 57,
    name: "Eo",
    type: 2,
    elem: "Thunder",
    conditions: { day: [5, 6], night: [0, 1, 7, 6] },
  },
  {
    level: 58,
    name: "Mammet #013BL",
    type: 1,
    elem: "Ice",
    conditions: { day: [], night: [0, 1, 7, 5, 6] },
  },
  {
    level: 58,
    name: "Rusted Dreadnaught",
    type: 1,
    elem: "Fire",
    conditions: { day: [1, 7, 5, 6], night: [] },
  },
  {
    level: 59,
    name: "Void Vouivre",
    type: 1,
    elem: "Thunder",
    conditions: { day: [], night: [1] },
  },
  {
    level: 59,
    name: "Shugen Tengu",
    type: 1,
    elem: "Wind",
    conditions: { day: [1, 7, 5, 6], night: [] },
  },
  {
    level: 60,
    name: "Gorpokkur",
    type: 1,
    elem: "Wind",
    conditions: { day: [0, 1, 7, 5, 6], night: [] },
  },
  {
    level: 60,
    name: "Val Mantis",
    type: 1,
    elem: "Ice",
    conditions: { day: [], night: [1] },
  },
  {
    level: 61,
    name: "Hydatos squib",
    type: 2,
    elem: "Water",
    conditions: { day: [0, 1, 7, 5], night: [0, 7, 6] },
  },
  {
    level: 61,
    name: "Val Mole",
    type: 1,
    elem: "Water",
    conditions: { day: [], night: [1, 5, 6] },
  },
  {
    level: 61,
    name: "Thor the Lost",
    type: 0,
    elem: null,
    conditions: { day: [], night: [] },
  },
  {
    level: 62,
    name: "Unfound Ogre ",
    type: 1,
    elem: null,
    conditions: { day: [0], night: [0] },
  },
  {
    level: 62,
    name: "Hydatos Mylodon",
    type: 1,
    elem: "Fire",
    conditions: { day: [0, 1, 7, 5, 6], night: [] },
  },
  {
    level: 63,
    name: "Zu Nestling",
    type: 2,
    elem: "Wind",
    conditions: { day: [1, 7, 6], night: [1, 7, 5, 6] },
  },
  {
    level: 63,
    name: "Laboratory Jackal ",
    type: 1,
    elem: null,
    conditions: { day: [], night: [5] },
  },
  {
    level: 64,
    name: "Hydatos Peiste",
    type: 1,
    elem: "Wind",
    conditions: { day: [1, 7, 5, 6], night: [1] },
  },
  {
    level: 64,
    name: "Dark Gargoyle",
    type: 1,
    elem: "Thunder",
    conditions: { day: [], night: [0, 1, 7, 5, 6] },
  },
  {
    level: 65,
    name: "Hydatos Zebu",
    type: 1,
    elem: "Earth",
    conditions: { day: [7], night: [7] },
  },
  {
    level: 65,
    name: "Void Wyvern",
    type: 1,
    elem: "Thunder",
    conditions: { day: [], night: [0, 1, 7, 6] },
  },
  {
    level: null,
    levelRange: [50, 52],
    name: "Soulless Researcher",
    type: 2,
    elem: "Ice",
    conditions: { day: [], night: [7] },
  },
  {
    level: null,
    levelRange: [53, 55],
    name: "Soulless Adventurer",
    type: 0,
    elem: null,
    conditions: { day: [], night: [] },
  },
  {
    level: 58,
    name: "Dark Rider",
    type: 2,
    elem: "Wind",
    conditions: { day: [], night: [1] },
  },
  {
    level: null,
    levelRange: [59, 61],
    name: "Hydatos Wraith",
    type: 2,
    elem: "Fire",
    conditions: { day: [], night: [] },
  },
  {
    level: null,
    levelRange: [62, 65],
    name: "Samurai Corpse",
    type: 2,
    elem: "Ice",
    conditions: { day: [], night: [1, 7] },
  },
  {
    level: 57,
    name: "Dark Rider",
    type: 1,
    elem: "Wind",
    conditions: { day: [], night: [5] },
  },
];