question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Namespace / module formatting of tests.fs

See original GitHub issue

What is an advantage of separating the namespace and module as is done in tests.fs? https://github.com/fslaborg/flips/blob/73e4065bd422b69ddf0a10bd55b1e2b897f7fe06/Flips.Tests/Tests.fs#L1-L3

I don’t know of any that apply to that file.

The alternative is to combine them like this.

module Flips.Tests.Types

An advantage of combining them is that there is one less level of indentation in the rest of the file.

I am willing to create a PR that combines them and reduce the indentation by one level in the rest of the file.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
matthewcrewscommented, Jan 4, 2021

FYI, the plan is to move all the examples to .fsx files in the future. Eases the delivery.

1reaction
matthewcrewscommented, Dec 29, 2020

At the same time, it would be much easier for me if I could contribute improvements to main. Is that ok if I focus on making improvements to main?

Yes!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I Pytest a project using PEP 420 namespace ...
The issue you are facing is that you place tests aside the production code inside namespace packages. As stated here, pytest recognizes your ......
Read more >
Tests fail when using TypeScript project references #1648
I.e. if I had a reference in package B to ~/formatting , and I would test package A which import s something from...
Read more >
npm-style "@prefix/module" or something else? · Issue #12 ...
new core modules go under a namespace nodejs/node#21551 ... There is a module on npm called fs , another called domain .
Read more >
README - fs
fs provides a cross-platform, uniform interface to file system operations. It shares the same back-end component as nodejs, the libuv C library, which...
Read more >
F# coding conventions
F# features two primary ways to organize code: modules and namespaces. These are similar, but do have the following differences:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found