# Broken ppx\_inline\_test?

**URL:** <https://discuss.ocaml.org/t/broken-ppx-inline-test/15956>\
**Category:** Ecosystem\
**Tags:** ppx\_inline\_test, testing\
**Created:** [January 14, 2025, 3:19pm UTC](https://discuss.ocaml.org/t/broken-ppx-inline-test/15956 "2025-01-14T15:19:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![giltho](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/giltho/32/3521_2.png) [@giltho](https://discuss.ocaml.org/u/giltho)\
**Post date:** [January 14, 2025, 3:19pm UTC](https://discuss.ocaml.org/t/broken-ppx-inline-test/15956/1 "2025-01-14T15:19:29Z")

</div>

Hello,

I’m having trouble compiling something with `ppx_inline_test` under OCaml 5.3 and I’m not sure what’s happening. When using `module%test`, I simply get `Error: value expected` (both in lsp and when building).

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ocaml/original/2X/8/8195069dcef834291ffece8875e14d8bba594c47.png)

I’ve tried literally copy-pasting the test module from ppx\_inline\_test’s own test suite and I get the same thing. I haven’t found anything here or on Google, does anyone know how to fix it?

---

<div class="post-metadata">

**Author:** ![Kakadu](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/kakadu/32/1204_2.png) [@Kakadu](https://discuss.ocaml.org/u/Kakadu)\
**Post date:** [January 14, 2025, 3:31pm UTC](https://discuss.ocaml.org/t/broken-ppx-inline-test/15956/2 "2025-01-14T15:31:08Z")

</div>

The same for me but it seems legacy syntax works.

```auto
let%test_module "name" =
  (module struct
    let%expect_test _ = ()
  end)
;;

```

---

<div class="post-metadata">

**Author:** ![giltho](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/giltho/32/3521_2.png) [@giltho](https://discuss.ocaml.org/u/giltho)\
**Post date:** [January 14, 2025, 3:39pm UTC](https://discuss.ocaml.org/t/broken-ppx-inline-test/15956/3 "2025-01-14T15:39:42Z")

</div>

That does work, thank you!!
