File: spec_helper.cr

package info (click to toggle)
crystal 1.14.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 24,384 kB
  • sloc: javascript: 6,400; sh: 695; makefile: 269; ansic: 121; python: 105; cpp: 77; xml: 32
file content (8 lines) | stat: -rw-r--r-- 291 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
require "spec"
require "spec/helpers/iterate"

def it_iterates_graphemes(string, graphemes, *, file = __FILE__, line = __LINE__)
  graphemes = graphemes.map { |grapheme| String::Grapheme.new(grapheme) }

  it_iterates string.dump, graphemes, string.each_grapheme, file: file, line: line
end