Skip to content

jinja : implement sameas test - #29448

Merged
CISC merged 2 commits into
masterfrom
cisc/jinja-simple-sameas
Sep 26, 2026
Merged

CISC merged 2 commits into
masterfrom
cisc/jinja-simple-sameas

Conversation

@CISC

@CISC CISC commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

Overview

Implement sameas test.

Requirements

@CISC
CISC requested a review from ggerganov as a code owner September 25, 2026 21:13
@github-actions github-actions Bot added testing Everything test related jinja parser Issues related to the jinja parser labels Sep 25, 2026
@CISC
CISC requested a review from ngxson September 25, 2026 21:14

@ngxson ngxson left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agent reports an edge case where python have small-int cache, x is sameas(1000) with x=1000, render as yes on C++ but no on ref python

not sure worth fixing, but just flagging here

Comment thread common/jinja/value.cpp Resolved
@CISC

CISC commented Sep 26, 2026

Copy link
Copy Markdown
Member Author

agent reports an edge case where python have small-int cache, x is sameas(1000) with x=1000, render as yes on C++ but no on ref python

Ah, I just thought int was special in general.

not sure worth fixing, but just flagging here

Yes, a little tricky as the range can vary, but maybe just support the guaranteed -5-256 at least?

@CISC
CISC force-pushed the cisc/jinja-simple-sameas branch from 74bfb34 to b614cf4 Compare September 26, 2026 06:40
@CISC CISC changed the title jinja : implement simple sameas test jinja : implement sameas test Sep 26, 2026
@CISC

CISC commented Sep 26, 2026

Copy link
Copy Markdown
Member Author

Actually, I'm not sure why I thought object comparison wouldn't work, it does, fully implemented sameas.

@CISC
CISC requested a review from ngxson September 26, 2026 06:50
@CISC
CISC merged commit 81bc6b8 into master Sep 26, 2026
12 checks passed
@CISC
CISC deleted the cisc/jinja-simple-sameas branch September 26, 2026 08:15
edwardyoon pushed a commit to edwardyoon/focus-llama that referenced this pull request Oct 7, 2026
* implement sameas test

* add tests

(cherry picked from commit 81bc6b8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jinja parser Issues related to the jinja parser testing Everything test related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants