code: def test_issue740(en_tokenizer, text):
      """Test that dates are not split and kept as one token. This behaviour is
      currently inconsistent, since dates separated by hyphens are still split.
      This will be hard to prevent without causing clashes with numeric ranges.
      """
      tokens = en_tokenizer(text)
      assert len(tokens) == 1
  
file_path: spacy/spacy/tests/lang/en/test_tokenizer.py
imports: import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: test_issue740(en_tokenizer, text) without return types