text: import { positiveNumbersIncludingZero } from "./filter.solution";
  
  describe("filter", () => {
  
    it("should handle undefined input", () => {
      expect(positiveNumbersIncludingZero(undefined)).toEqual([]);
    });
  
    it("should handle null input", () => {
      expect(positiveNumbersIncludingZero(null)).toEqual([]);
    });
  
    it("should handle empty input", () => {
      expect(positiveNumbersIncludingZero([])).toEqual([]);
    });
  
    it("should filter positive numbers", () => {
      expect(positiveNumbersIncludingZero([-1, 2, 1, -2, -1, 1])).toEqual([2, 1, 1]);
    });
  
    it("should filter positive numbers including 0", () => {
      expect(positiveNumbersIncludingZero([-1, 2, 1, -2, 0, -1, 1])).toEqual([2, 1, 0, 1]);
    });
  
    it("should filter infinity", () => {
      expect(positiveNumbersIncludingZero([1 / 0, 1, -2, 0, -1 / 0])).toEqual([1, 0]);
    });
  
  });
  