test: address shortcut regression review

This commit is contained in:
Dennis
2026-08-20 23:56:08 +08:00
parent 23940e4752
commit bb6f470df5
2 changed files with 15 additions and 0 deletions
@@ -0,0 +1,7 @@
---
category: Fixed
---
- **Calendar empty windows** (#1074) — returns a legitimate empty result when the service emits its exact exhausted empty-event sentinel.
- **Task update verification** (#1074) — compares due-time readback as exact milliseconds so committed updates are no longer reported as failures.
- **Comment reaction validation** (#1074) — narrows accepted reaction input to reviewed DingTalk emoji names and rejects Unicode emoji and unsupported names such as `like` and `heart` before the RPC.
@@ -8,6 +8,7 @@ import (
"encoding/json"
"errors"
"io"
"math"
"strconv"
"strings"
"testing"
@@ -331,7 +332,14 @@ func TestCrossPlatformCoverageTodoCreateAndUpdate(t *testing.T) {
{value: float64(40), want: 40, ok: true},
{value: json.Number("40"), want: 40, ok: true},
{value: " 40 ", want: 40, ok: true},
{value: float64(math.MinInt64), want: math.MinInt64, ok: true},
{value: 1786932000000.5},
{value: math.NaN()},
{value: math.Inf(1)},
{value: math.Inf(-1)},
{value: float64(math.MaxInt64)},
{value: 1e300},
{value: -1e300},
{value: json.Number("not-a-number")},
{value: "not-a-number"},
{value: true},