Skip to content

Commit

Permalink
Fix tests with addition of bids and numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
kezsulap committed Nov 9, 2024
1 parent eaae38d commit c07c9c3
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 12 deletions.
33 changes: 33 additions & 0 deletions integration-tests/arithmetic-operation-on-bids-out/out.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html><html lang="pl"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link rel="stylesheet" href="file:////home/konrad/SSO_MAX_CC/resources_main/bridge-bidding-styl-v10.css">
<script src="file:////home/konrad/SSO_MAX_CC/resources_main/jquery.min.js"></script>
<script src="file:////home/konrad/SSO_MAX_CC/resources_main/jquery-balloon.js"></script>
<script src="file:////home/konrad/SSO_MAX_CC/resources_main/jquery-bridge-bidding-3.js"></script>
<script src="file:////home/konrad/SSO_MAX_CC/resources_main/theme-min-2.js"></script>
<script src="file:////home/konrad/SSO_MAX_CC/resources_main/parse-v11.js"></script>
<script src="file:////home/konrad/SSO_MAX_CC/resources_main/main.js"></script>
<script>hardcoded=['function f(bid, offset)\n $(bid) hello\n $(bid + offset) world\n $(bid + 10) xd\n $(3n + offset) test\n $(7c - offset) test2\n $(7n - 1) test3\n $(7s - offset) test4\nend\n\n:f(1c, 1)\n:f(1d, 2)\n:f(1h, 3)\n']</script>
<title>Convention card ♠♥♦♣</title></head>
<body class="dark done">
<div id="content">
<!-- początek strony -->

<div class="bidding level00 title" level="0" id="page_title" style="display: none;"></div>
<div id="topmenu">
<ul class="topmenu" id="topmenulist"><li><a href="#open0" class="topmenu">1<span class="club suit"><span class="suit-label"><span class="emoji"></span></span><span class="club-image"></span></span></a></li><li><a href="#open1" class="topmenu">1<span class="diamond suit"><span class="suit-label"><span class="emoji"></span></span><span class="diamond-image"></span></span></a></li><li><a href="#open2" class="topmenu">1<span class="heart suit"><span class="suit-label"><span class="emoji"></span></span><span class="heart-image"></span></span></a></li><li id="theme_switch_button"><div onclick="handle_theme_switch()">☀️</div></li><li id="fold_everything_button"><div onclick="fold_everything()"></div></li></ul>
<div style="clear: both;"></div>
</div>
<div id="bidding">


<div class="bidding level00 relay our_call" level="0" id="open0" title="Open 1<span class=&quot;club suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♣</span></span><span class=&quot;club-image&quot;></span></span>"><call>1<span class="club suit"><span class="suit-label"><span class="emoji"></span></span><span class="club-image"></span></span>:</call> hello</div><div class="bidding level01 our_call" level="1" style="display: none;" title="<table><tr><td class=&quot;ours&quot;>1<span class=&quot;club suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♣</span></span><span class=&quot;club-image&quot;></span></span></td><td class=&quot;ours&quot;>1<span class=&quot;diamond suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♦</span></span><span class=&quot;diamond-image&quot;></span></span></td></tr></table>"><call>1<span class="diamond suit"><span class="suit-label"><span class="emoji"></span></span><span class="diamond-image"></span></span>:</call> world</div><div class="bidding level01 our_call" level="1" style="display: none;" title="<table><tr><td class=&quot;ours&quot;>1<span class=&quot;club suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♣</span></span><span class=&quot;club-image&quot;></span></span></td><td class=&quot;ours&quot;>3<span class=&quot;club suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♣</span></span><span class=&quot;club-image&quot;></span></span></td></tr></table>"><call>3<span class="club suit"><span class="suit-label"><span class="emoji"></span></span><span class="club-image"></span></span>:</call> xd</div><div class="bidding level01 our_call" level="1" style="display: none;" title="<table><tr><td class=&quot;ours&quot;>1<span class=&quot;club suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♣</span></span><span class=&quot;club-image&quot;></span></span></td><td class=&quot;ours&quot;>4<span class=&quot;club suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♣</span></span><span class=&quot;club-image&quot;></span></span></td></tr></table>"><call>4<span class="club suit"><span class="suit-label"><span class="emoji"></span></span><span class="club-image"></span></span>:</call> test</div><div class="bidding level01 our_call" level="1" style="display: none;" title="<table><tr><td class=&quot;ours&quot;>1<span class=&quot;club suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♣</span></span><span class=&quot;club-image&quot;></span></span></td><td class=&quot;ours&quot;>6NT</td></tr></table>"><call>6NT:</call> test2</div><div class="bidding level01 our_call" level="1" style="display: none;" title="<table><tr><td class=&quot;ours&quot;>1<span class=&quot;club suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♣</span></span><span class=&quot;club-image&quot;></span></span></td><td class=&quot;ours&quot;>7<span class=&quot;spade suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♠</span></span><span class=&quot;spade-image&quot;></span></span></td></tr></table>"><call>7<span class="spade suit"><span class="suit-label"><span class="emoji"></span></span><span class="spade-image"></span></span>:</call> test3</div><div class="bidding level01 our_call" level="1" style="display: none;" title="<table><tr><td class=&quot;ours&quot;>1<span class=&quot;club suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♣</span></span><span class=&quot;club-image&quot;></span></span></td><td class=&quot;ours&quot;>7<span class=&quot;heart suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♥</span></span><span class=&quot;heart-image&quot;></span></span></td></tr></table>"><call>7<span class="heart suit"><span class="suit-label"><span class="emoji"></span></span><span class="heart-image"></span></span>:</call> test4</div><div class="bidding level00 relay our_call" level="0" id="open1" title="Open 1<span class=&quot;diamond suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♦</span></span><span class=&quot;diamond-image&quot;></span></span>"><call>1<span class="diamond suit"><span class="suit-label"><span class="emoji"></span></span><span class="diamond-image"></span></span>:</call> hello</div><div class="bidding level01 our_call" level="1" style="display: none;" title="<table><tr><td class=&quot;ours&quot;>1<span class=&quot;diamond suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♦</span></span><span class=&quot;diamond-image&quot;></span></span></td><td class=&quot;ours&quot;>1<span class=&quot;spade suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♠</span></span><span class=&quot;spade-image&quot;></span></span></td></tr></table>"><call>1<span class="spade suit"><span class="suit-label"><span class="emoji"></span></span><span class="spade-image"></span></span>:</call> world</div><div class="bidding level01 our_call" level="1" style="display: none;" title="<table><tr><td class=&quot;ours&quot;>1<span class=&quot;diamond suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♦</span></span><span class=&quot;diamond-image&quot;></span></span></td><td class=&quot;ours&quot;>3<span class=&quot;diamond suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♦</span></span><span class=&quot;diamond-image&quot;></span></span></td></tr></table>"><call>3<span class="diamond suit"><span class="suit-label"><span class="emoji"></span></span><span class="diamond-image"></span></span>:</call> xd</div><div class="bidding level01 our_call" level="1" style="display: none;" title="<table><tr><td class=&quot;ours&quot;>1<span class=&quot;diamond suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♦</span></span><span class=&quot;diamond-image&quot;></span></span></td><td class=&quot;ours&quot;>4<span class=&quot;diamond suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♦</span></span><span class=&quot;diamond-image&quot;></span></span></td></tr></table>"><call>4<span class="diamond suit"><span class="suit-label"><span class="emoji"></span></span><span class="diamond-image"></span></span>:</call> test</div><div class="bidding level01 our_call" level="1" style="display: none;" title="<table><tr><td class=&quot;ours&quot;>1<span class=&quot;diamond suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♦</span></span><span class=&quot;diamond-image&quot;></span></span></td><td class=&quot;ours&quot;>6<span class=&quot;spade suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♠</span></span><span class=&quot;spade-image&quot;></span></span></td></tr></table>"><call>6<span class="spade suit"><span class="suit-label"><span class="emoji"></span></span><span class="spade-image"></span></span>:</call> test2</div><div class="bidding level01 our_call" level="1" style="display: none;" title="<table><tr><td class=&quot;ours&quot;>1<span class=&quot;diamond suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♦</span></span><span class=&quot;diamond-image&quot;></span></span></td><td class=&quot;ours&quot;>7<span class=&quot;spade suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♠</span></span><span class=&quot;spade-image&quot;></span></span></td></tr></table>"><call>7<span class="spade suit"><span class="suit-label"><span class="emoji"></span></span><span class="spade-image"></span></span>:</call> test3</div><div class="bidding level01 our_call" level="1" style="display: none;" title="<table><tr><td class=&quot;ours&quot;>1<span class=&quot;diamond suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♦</span></span><span class=&quot;diamond-image&quot;></span></span></td><td class=&quot;ours&quot;>7<span class=&quot;diamond suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♦</span></span><span class=&quot;diamond-image&quot;></span></span></td></tr></table>"><call>7<span class="diamond suit"><span class="suit-label"><span class="emoji"></span></span><span class="diamond-image"></span></span>:</call> test4</div><div class="bidding level00 relay our_call" level="0" id="open2" title="Open 1<span class=&quot;heart suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♥</span></span><span class=&quot;heart-image&quot;></span></span>"><call>1<span class="heart suit"><span class="suit-label"><span class="emoji"></span></span><span class="heart-image"></span></span>:</call> hello</div><div class="bidding level01 our_call" level="1" style="display: none;" title="<table><tr><td class=&quot;ours&quot;>1<span class=&quot;heart suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♥</span></span><span class=&quot;heart-image&quot;></span></span></td><td class=&quot;ours&quot;>2<span class=&quot;club suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♣</span></span><span class=&quot;club-image&quot;></span></span></td></tr></table>"><call>2<span class="club suit"><span class="suit-label"><span class="emoji"></span></span><span class="club-image"></span></span>:</call> world</div><div class="bidding level01 our_call" level="1" style="display: none;" title="<table><tr><td class=&quot;ours&quot;>1<span class=&quot;heart suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♥</span></span><span class=&quot;heart-image&quot;></span></span></td><td class=&quot;ours&quot;>3<span class=&quot;heart suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♥</span></span><span class=&quot;heart-image&quot;></span></span></td></tr></table>"><call>3<span class="heart suit"><span class="suit-label"><span class="emoji"></span></span><span class="heart-image"></span></span>:</call> xd</div><div class="bidding level01 our_call" level="1" style="display: none;" title="<table><tr><td class=&quot;ours&quot;>1<span class=&quot;heart suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♥</span></span><span class=&quot;heart-image&quot;></span></span></td><td class=&quot;ours&quot;>4<span class=&quot;heart suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♥</span></span><span class=&quot;heart-image&quot;></span></span></td></tr></table>"><call>4<span class="heart suit"><span class="suit-label"><span class="emoji"></span></span><span class="heart-image"></span></span>:</call> test</div><div class="bidding level01 our_call" level="1" style="display: none;" title="<table><tr><td class=&quot;ours&quot;>1<span class=&quot;heart suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♥</span></span><span class=&quot;heart-image&quot;></span></span></td><td class=&quot;ours&quot;>6<span class=&quot;heart suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♥</span></span><span class=&quot;heart-image&quot;></span></span></td></tr></table>"><call>6<span class="heart suit"><span class="suit-label"><span class="emoji"></span></span><span class="heart-image"></span></span>:</call> test2</div><div class="bidding level01 our_call" level="1" style="display: none;" title="<table><tr><td class=&quot;ours&quot;>1<span class=&quot;heart suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♥</span></span><span class=&quot;heart-image&quot;></span></span></td><td class=&quot;ours&quot;>7<span class=&quot;spade suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♠</span></span><span class=&quot;spade-image&quot;></span></span></td></tr></table>"><call>7<span class="spade suit"><span class="suit-label"><span class="emoji"></span></span><span class="spade-image"></span></span>:</call> test3</div><div class="bidding level01 our_call" level="1" style="display: none;" title="<table><tr><td class=&quot;ours&quot;>1<span class=&quot;heart suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♥</span></span><span class=&quot;heart-image&quot;></span></span></td><td class=&quot;ours&quot;>7<span class=&quot;club suit&quot;><span class=&quot;suit-label&quot;><span class=&quot;emoji&quot;>♣</span></span><span class=&quot;club-image&quot;></span></span></td></tr></table>"><call>7<span class="club suit"><span class="suit-label"><span class="emoji"></span></span><span class="club-image"></span></span>:</call> test4</div></div><!-- koniec #bidding -->
<!-- koniec strony -->
</div><!-- /content -->






</body></html>
13 changes: 13 additions & 0 deletions integration-tests/arithmetic-operation-on-bids.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function f(bid, offset)
$(bid) hello
$(bid + offset) world
$(bid + 10) xd
$(3n + offset) test
$(7c - offset) test2
$(7n - 1) test3
$(7s - offset) test4
end

:f(1c, 1)
:f(1d, 2)
:f(1h, 3)
Loading

0 comments on commit c07c9c3

Please sign in to comment.