dylanmckay / lit

An integrated testing tool inspired from LLVM's 'lit' tool
MIT License
17 stars 9 forks source link

Constants doesn't seem to work in CHECK #5

Open lukaspustina opened 4 years ago

lukaspustina commented 4 years ago

Hi, thanks for this crate which I use in testing the output of my CLI tool with joy!

While working with constants I observed that they doesn't seem to work in CHECK while perfectly fine in RUN:

RUN: @app_bin

CHECK: @app_bin.

It seems to me that CHECK is trying to literally match @app_bin without substituting the the variable name with the name.

Could you verify this observation and if it's incorrect let me know how to properly use constants in CHECK.

Thanks in advance, Lukas