aboutsummaryrefslogtreecommitdiff
path: root/test/snippets/lodash-regexp.js
blob: bc683e5352f504ce044235f5ba7e856be9b65304 (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
import { shuffle } from "lodash";

// Lodash uses a variety of uncommon syntax (such as unicode escapes in regexp)
// so running it is a broad test of the parser, lexer, and printer
export function test() {
  const foo = [1, 2, 3, 4, 6];
  const bar = shuffle(foo);
  console.assert(bar !== foo);
  console.assert(bar.length === foo.length);
  bar.sort();
  foo.sort();
  for (let i = 0; i < bar.length; i++) {
    console.assert(bar[i] === foo[i], "expected " + i + " to be " + foo[i]);
    console.assert(typeof bar[i] === "number");
    console.assert(typeof foo[i] === "number");
  }

  return testDone(import.meta.url);
}

// export function test() {
//   const regexp = RegExp("['\u2019]", "g");
//   return testDone(import.meta.url);
// }
-component-api-2'>wip-component-api-2 Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/examples/docs/.stackblitzrc (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2022-06-28Fix Tailwind integration Typescript warning (#3732)Gravatar Victor 2-1/+6
* Make options optional * chore: add changeset Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-06-27[ci] formatGravatar bholmesdev 2-3/+3
2022-06-27Refactor: remove Deno shim to esbuild "banner" (#3734)Gravatar Ben Holmes 7-15/+22
* refactor: remove Deno shim to esbuild "banner" * refactor: move shim to const * refactor: add shim to netlify edge * chore: changeset
2022-06-27[ci] formatGravatar FredKSchott 9-23/+25
2022-06-27update telemetry to support more anonymized project id (#3713)Gravatar Fred K. Schott 20-351/+311
* update telemetry to support more anonymized project id * Create strange-laws-kick.md * respond to nate feedback
2022-06-27SImplify "astro add" by removing confusing multi-select (#3715)Gravatar Fred K. Schott 13-258/+157
* wip * update create-astro for new astro add * update copy * update git prompt * Update packages/astro/src/core/logger/node.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update packages/create-astro/test/install-step.test.js Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * update git prompt * update test Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>