exercism / exercism/typescript-analyzer

Incorrect Analysis: Analyzer giving incorrect example on Two-Fer exercise

Open
#54 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5
Forks
6
Avg merge
11h 33m
Merged PRs (30d)
12

Description

**Describe the incorrectness**
The analyzer commented on my solution that it could be helpful to use string interpolation. In the example it provides it show this: `"Hello there \${firstName}, I will give you \${calculateInventory()} apples."`. However, this does not work. The only way I get it to work is by using backticks (\`) instead of single or double quotes. Even when escaping the $, running `yarn test` fails.

**Which exercise**
Two Fer

**Source file(s)**

```typescript
two-fer.ts
```

**Expected analysis**
I expect the example to use backticks instead of double quotes.

**Additional context**
Screenshot of my code and the output of running `yarn test`
![299AFBCF-4BB8-48E6-B895-C3A3608FFFE4](https://user-images.githubusercontent.com/126024042/221901117-8caef78d-9c63-4ac0-8c7e-b24d6c27370f.jpeg)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.