Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add colored background to highlight changes to the state #344

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

FedericoPonzi
Copy link
Collaborator

Looking for feedback to solve #250. This is adding a opaque background color to help spot removals, additions and updates.

Preview:
image

---- MODULE 250Playground ----
EXTENDS Bags, Naturals

VARIABLE x, y

Init ==
    /\ x = [ k \in {<<"a", "b">>} |-> 1 ]
    /\ y = 1

Next == /\ x' = (x (+) [ k \in {<<"b", ToString(y)>>} |-> y ]) (-) [ k \in {<<"b", ToString(y-1)>>} |-> y-1 ]
        /\ y' = y + 1
 
Inv ==
    y < 5

====
---- CONFIG 250Playground ----
INIT Init
NEXT Next
INVARIANT Inv
====

image

@FedericoPonzi FedericoPonzi changed the title Add colored background to highlightchanges to the state: removal, addition and update Add colored background to highlight changes to the state: removal, addition and update Oct 11, 2024
@FedericoPonzi FedericoPonzi changed the title Add colored background to highlight changes to the state: removal, addition and update Add colored background to highlight changes to the state Oct 11, 2024
…ition and update

Signed-off-by: Federico Ponzi <me@fponzi.me>
Copy link
Member

@lemmy lemmy left a comment

Choose a reason for hiding this comment

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

let's try it out

@FedericoPonzi FedericoPonzi merged commit e1fd4e6 into tlaplus:master Oct 11, 2024
4 checks passed
@FedericoPonzi FedericoPonzi deleted the issue-250 branch October 11, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants