code: def test_relative_days():
      # "next monday" on monday
      assert relative_days(0, 0, 1) == 7
      # "last monday" on monday
      assert relative_days(0, 0, -1) == -7
      # "next tuesday" on wednesday
      assert relative_days(2, 1, 1) == 6
      # "last tuesday" on wednesay
      assert relative_days(2, 1, -1) == -1
      # "last monday" on sunday
      assert relative_days(6, 0, -1) == -6
      # "next monday" on sunday
      assert relative_days(6, 0, 1) == 1
      # "next wednesday" on tuesday
      assert relative_days(1, 2, 1) == 1
      # "last wednesday" on tuesday
      assert relative_days(1, 2, -1) == -6
      # "last wednesday" on thursday
      assert relative_days(3, 2, -1) == -1
      # "next wednesday" on thursday
      assert relative_days(3, 2, 1) == 6
      # "last wednesday" on tuesday
      assert relative_days(1, 2, -1) == -6
      # "next wednesday" on tuesday
      assert relative_days(1, 2, 1) == 1
  
file_path: whoosh/tests/test_dateparse.py
imports: from whoosh.qparser.dateparse import *
label_desc: Use image node_id 10 for calling a global function with example usage: test_relative_days() without return types