{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import spot\n", "from spot.jupyter import display_inline\n", "spot.setup()\n", "\n", "def test_and(left, right):\n", " res = spot.product_susp(left, right)\n", " display_inline(left, right, res)\n", " assert res.equivalent_to(spot.product(left, right))\n", "\n", "def test_or(left, right):\n", " res = spot.product_or_susp(left, right)\n", " display_inline(left, right, res)\n", " assert res.equivalent_to(spot.product_or(left, right))\n", "\n", "def test(left, right):\n", " test_and(left, right)\n", " test_or(left, right)" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "